mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1137609: Test for the missing export because we can't trust the version. r=glandium
This commit is contained in:
parent
4cb7e10356
commit
d117ab2f72
@ -128,11 +128,15 @@ Init()
|
|||||||
MOZ_ASSERT(!GetModuleHandleA("msvcr120d.dll"));
|
MOZ_ASSERT(!GetModuleHandleA("msvcr120d.dll"));
|
||||||
|
|
||||||
#if defined(_M_IX86) && defined(_MSC_VER)
|
#if defined(_M_IX86) && defined(_MSC_VER)
|
||||||
if (!mozilla::IsXPSP3OrLater()) {
|
if (!mozilla::IsWin2003OrLater()) {
|
||||||
NtdllIntercept.Init("ntdll.dll");
|
// Test for the export because we can't trust the SP version (bug 1137609)
|
||||||
NtdllIntercept.AddHook("RtlImageNtHeader",
|
HMODULE kernel = GetModuleHandleA("kernel32.dll");
|
||||||
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
if (!kernel || !GetProcAddress(kernel, "GetLogicalProcessorInformation")) {
|
||||||
reinterpret_cast<void**>(&stub_RtlImageNtHeader));
|
NtdllIntercept.Init("ntdll.dll");
|
||||||
|
NtdllIntercept.AddHook("RtlImageNtHeader",
|
||||||
|
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
||||||
|
reinterpret_cast<void**>(&stub_RtlImageNtHeader));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user