From ac95819ec1509a7b1a6f73eeef5c17dfd5c5b95c Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 24 Sep 2013 21:51:05 +0800 Subject: [PATCH] Return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY when priority < 0 --- Core/HLE/sceIo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index 513ab4d4e1..e3a2355adf 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -1526,6 +1526,9 @@ u32 sceIoChdir(const char *dirname) { int sceIoChangeAsyncPriority(int id, int priority) { + if (priority < 0) { + return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY; + } ERROR_LOG(SCEIO, "UNIMPL sceIoChangeAsyncPriority(%d, %d)", id, priority); return 0; }