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"));
|
||||
|
||||
#if defined(_M_IX86) && defined(_MSC_VER)
|
||||
if (!mozilla::IsXPSP3OrLater()) {
|
||||
NtdllIntercept.Init("ntdll.dll");
|
||||
NtdllIntercept.AddHook("RtlImageNtHeader",
|
||||
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
||||
reinterpret_cast<void**>(&stub_RtlImageNtHeader));
|
||||
if (!mozilla::IsWin2003OrLater()) {
|
||||
// Test for the export because we can't trust the SP version (bug 1137609)
|
||||
HMODULE kernel = GetModuleHandleA("kernel32.dll");
|
||||
if (!kernel || !GetProcAddress(kernel, "GetLogicalProcessorInformation")) {
|
||||
NtdllIntercept.Init("ntdll.dll");
|
||||
NtdllIntercept.AddHook("RtlImageNtHeader",
|
||||
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
||||
reinterpret_cast<void**>(&stub_RtlImageNtHeader));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user