Bug 1023941 followup: Fix bustage on builds that use Win7 SDK

--HG--
extra : rebase_source : 7257820a00fa9ac921f61194855f3fd3dcb09fa1
This commit is contained in:
David Major 2014-08-31 08:44:22 +12:00
parent a76130c172
commit 1f6a47fd69

View File

@ -92,7 +92,7 @@ PatchModuleImports(HMODULE module, PIMAGE_NT_HEADERS headers)
RVAPtr<IMAGE_THUNK_DATA> thunk(module, descriptor->OriginalFirstThunk);
for (; thunk->u1.AddressOfData; ++thunk) {
RVAPtr<IMAGE_IMPORT_BY_NAME> import(module, thunk->u1.AddressOfData);
if (!strcmp(import->Name, "GetLogicalProcessorInformation")) {
if (!strcmp((char*)import->Name, "GetLogicalProcessorInformation")) {
memcpy(import->Name, "DebugBreak", sizeof("DebugBreak"));
}
}