Io: Correct result on async file not found.

This commit is contained in:
Unknown W. Brackets 2019-09-01 09:43:01 -07:00
parent c26becb545
commit c53acfcac9

View file

@ -2038,9 +2038,9 @@ static u32 sceIoOpenAsync(const char *filename, int flags, int mode)
params.open.mode = mode;
IoStartAsyncThread(fd, f);
if (f == nullptr) {
if (error != 0) {
f->asyncResult = (s64)error;
return hleLogError(SCEIO, f->asyncResult, "file not found");
return hleLogError(SCEIO, fd, "file not found");
}
f->asyncResult = fd;