Fix "Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256"

Fix #11660
based from
f9a116f78a
the varable name is differcult from jpcsp,so that I translate wrong.
This commit is contained in:
sum2012 2020-05-16 21:34:55 +08:00
parent a63706925f
commit 54ffe9b235

View file

@ -679,8 +679,8 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<Ps
return SCE_KERNEL_ERROR_INVALID_POINTER;
}
if (args.IsValid() && args->size >= 256) {
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->size);
if (args.IsValid() && args->numStacks >= 256 ) {
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->numStacks);
return SCE_KERNEL_ERROR_INVALID_SIZE;
}