hos: Fix a long standing bug with kip1 patches

The kip1 patcher since its inception was checking for patches wrongly.
This would create an edge case scenario, where up to 1 patch could be skipped.
This commit is contained in:
CTCaer 2020-06-14 13:55:41 +03:00
parent d607a8830b
commit c2160ae367

View file

@ -1095,12 +1095,13 @@ const char* pkg2_patch_kips(link_t *info, char* patchNames)
{ {
for (u32 i = 0; i < numPatches; i++) for (u32 i = 0; i < numPatches; i++)
{ {
// Continue if patch name does not match.
if (strcmp(currPatchset->name, patches[i]) != 0) if (strcmp(currPatchset->name, patches[i]) != 0)
{ continue;
bitsAffected = i + 1; bitsAffected = i + 1;
break; break;
} }
}
currPatchset++; currPatchset++;
} }