Fix sceIoCloseAsync so it closes on wait.

Oops.
This commit is contained in:
Unknown W. Brackets 2013-04-16 00:16:22 -07:00
parent ea11c36091
commit c1d72b4210

View file

@ -231,6 +231,11 @@ void __IoAsyncNotify(u64 userdata, int cyclesLate) {
if (Memory::IsValidAddress(address) && f) {
Memory::Write_U64((u64) f->asyncResult, address);
}
// If this was a sceIoCloseAsync, we should close it at this point.
if (f->closePending) {
kernelObjects.Destroy<FileNode>(fd);
}
}
}