mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Allow a bad pts on zero size when listing uids.
This commit is contained in:
parent
feeb03b5ff
commit
b8f8707ea1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue