diff options
author | Moonchild <moonchild@palemoon.org> | 2021-09-30 02:11:33 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-01 14:38:31 +0200 |
commit | a7b63631b0e84c9a5ab1ef266f8f5e26c0f62d6a (patch) | |
tree | 521fbd6d7c6b866fbc8d58aa538af14312a57667 /toolkit | |
parent | cdff23ad0b3e0be2121c77a5b2415b15c7c4f0b2 (diff) | |
download | uxp-a7b63631b0e84c9a5ab1ef266f8f5e26c0f62d6a.tar.gz |
No issue - Clean up some obsolete/archaic code paths.
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/xre/nsAppRunner.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index ce5da9cdac..4affd760c5 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -4173,17 +4173,15 @@ void SetupErrorHandling(const char* progname) { #ifdef XP_WIN - /* On Windows XPSP3 and Windows Vista if DEP is configured off-by-default - we still want DEP protection: enable it explicitly and programmatically. - - This function is not available on WinXPSP2 so we dynamically load it. - */ - HMODULE kernel32 = GetModuleHandleW(L"kernel32.dll"); SetProcessDEPPolicyFunc _SetProcessDEPPolicy = (SetProcessDEPPolicyFunc) GetProcAddress(kernel32, "SetProcessDEPPolicy"); - if (_SetProcessDEPPolicy) + if (_SetProcessDEPPolicy) { _SetProcessDEPPolicy(PROCESS_DEP_ENABLE); + } else { + // Running without DEP is unsafe. + MOZ_CRASH("DEP unavailable -- unsupported configuration"); + } #endif #ifdef XP_WIN32 |