Io: Correct result on async file not found.

This commit is contained in:
Unknown W. Brackets committed 2019-09-01 09:43:01 -07:00
1 parent c26becb545
commit c53acfcac9
1 file changed
+2 -2
+2 -2
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;