mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-12 19:07:34 +00:00
Fix an uninitialized return value in sceIoCancel.
This commit is contained in:
parent
cdb676f17a
commit
65b32dc31d
@ -432,15 +432,14 @@ u32 sceIoCancel(int id)
|
||||
ERROR_LOG(HLE, "UNIMPL sceIoCancel(%d)", id);
|
||||
u32 error;
|
||||
FileNode *f = kernelObjects.Get < FileNode > (id, error);
|
||||
int result;
|
||||
if (f)
|
||||
if (f) {
|
||||
f->closePending = true;
|
||||
else {
|
||||
} else {
|
||||
ERROR_LOG(HLE, "sceIoCancel: unknown id %d", id);
|
||||
result = ERROR_KERNEL_BAD_FILE_DESCRIPTOR;
|
||||
error = ERROR_KERNEL_BAD_FILE_DESCRIPTOR;
|
||||
}
|
||||
|
||||
return result;
|
||||
return error;
|
||||
}
|
||||
|
||||
s64 sceIoLseek(int id, s64 offset, int whence) {
|
||||
|
Loading…
Reference in New Issue
Block a user