Forgot one (#783)

I forgot to readd the processed variable to the for loop.
This commit is contained in:
Stephen Miller 2024-09-04 16:24:30 -05:00 committed by GitHub
parent 50f4d51b3d
commit 33e357a250

View file

@ -272,7 +272,7 @@ s32 PS4_SYSV_ABI sceKernelBatchMap2(OrbisKernelBatchMapEntry* entries, int numEn
int* numEntriesOut, int flags) {
int result = ORBIS_OK;
int processed = 0;
for (int i = 0; i < numEntries; i++) {
for (int i = 0; i < numEntries; i++, processed++) {
if (entries == nullptr || entries[i].length == 0 || entries[i].operation > 4) {
result = ORBIS_KERNEL_ERROR_EINVAL;
break; // break and assign a value to numEntriesOut.