зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1137609: Apply the XPSP2 patch on all XP because we can't trust the version. r=glandium
--HG-- extra : rebase_source : 1e85fcabdeff69f9a9647598353df50436127124
This commit is contained in:
Родитель
237067b8b5
Коммит
a8ea0bbfe8
|
@ -128,7 +128,8 @@ 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()) {
|
// Add the hook on all XP because we can't trust the SP version (bug 1137609)
|
||||||
|
if (!mozilla::IsWin2003OrLater()) {
|
||||||
NtdllIntercept.Init("ntdll.dll");
|
NtdllIntercept.Init("ntdll.dll");
|
||||||
NtdllIntercept.AddHook("RtlImageNtHeader",
|
NtdllIntercept.AddHook("RtlImageNtHeader",
|
||||||
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
reinterpret_cast<intptr_t>(patched_RtlImageNtHeader),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче