Allow a bad pts on zero size when listing uids.

This commit is contained in:
Unknown W. Brackets committed 2014-08-17 14:38:55 -07:00
1 parent feeb03b5ff
commit b8f8707ea1
1 file changed
+1 -1
+1 -1
View File
@@ -1603,7 +1603,7 @@ u32 sceKernelGetThreadmanIdList(u32 type, u32 readBufPtr, u32 readBufSize, u32 i
return SCE_KERNEL_ERROR_ILLEGAL_ADDR;
}
DEBUG_LOG(SCEKERNEL, "sceKernelGetThreadmanIdList(%i, %08x, %i, %08x)", type, readBufPtr, readBufSize, idCountPtr);
if (!Memory::IsValidAddress(readBufPtr)) {
if (!Memory::IsValidAddress(readBufPtr) && readBufSize > 0) {
// Crashes on a PSP.
return SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT;
}