mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-04 14:37:17 +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);
|
ERROR_LOG(HLE, "UNIMPL sceIoCancel(%d)", id);
|
||||||
u32 error;
|
u32 error;
|
||||||
FileNode *f = kernelObjects.Get < FileNode > (id, error);
|
FileNode *f = kernelObjects.Get < FileNode > (id, error);
|
||||||
int result;
|
if (f) {
|
||||||
if (f)
|
|
||||||
f->closePending = true;
|
f->closePending = true;
|
||||||
else {
|
} else {
|
||||||
ERROR_LOG(HLE, "sceIoCancel: unknown id %d", id);
|
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) {
|
s64 sceIoLseek(int id, s64 offset, int whence) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user