Lines Matching defs:s_aPatches
2266 } const s_aPatches[] =
2274 for (uint32_t i = 0; i < RT_ELEMENTS(s_aPatches); i++)
2276 uint8_t *pbApi = *s_aPatches[i].ppbApi;
2277 if (memcmp(pbApi, s_aPatches[i].pabPatch, s_aPatches[i].cbPatch) != 0)
2287 s_aPatches[i].pszName, pbApi, s_aPatches[i].cbPatch, pbApi));
2290 Assert(s_aPatches[i].cbPatch >= 4);
2292 SUPR3HARDENED_ASSERT_NT_SUCCESS(supR3HardenedWinProtectMemory(pbApi, s_aPatches[i].cbPatch, PAGE_EXECUTE_READWRITE));
2301 memcpy(pbApi, s_aPatches[i].pabPatch, s_aPatches[i].cbPatch);
2320 if (s_aPatches[i].cbPatch > 4)
2321 memcpy(&pbApi[4], &s_aPatches[i].pabPatch[4], s_aPatches[i].cbPatch - 4);
2322 ASMAtomicXchgU32((uint32_t volatile *)pbApi, *(uint32_t *)s_aPatches[i].pabPatch);
2325 SUPR3HARDENED_ASSERT_NT_SUCCESS(supR3HardenedWinProtectMemory(pbApi, s_aPatches[i].cbPatch, PAGE_EXECUTE_READ));