ps2homebrew / wLaunchELF

ELF loader and File browser for Sony PlayStation 2
Other
515 stars 51 forks source link

also check errno when lseek64 returns -1 #117

Closed karas84 closed 1 year ago

karas84 commented 1 year ago

Pull Request checklist

Note: these are not necessarily requirements

Pull Request description

in genLseek the return value of lseek64 is checked against the error value -48 but it should also check against the -1 return code and the value 48 in errno. This fixes #116 allowing PS2 games to boot using PS2Disc.