diff options
author | fanquake <fanquake@gmail.com> | 2020-01-13 16:40:50 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-01-13 16:40:50 +0800 |
commit | 3d5d7aad269c7afe7e36677d3e76c6579e1b8aba (patch) | |
tree | a6955958595c3be659ffd19ce54889adcc5f5c34 /src/init.cpp | |
parent | f2645c26017591f819344d24dc0a88dc32dde6fd (diff) |
windows: remove call to SetProcessDEPPolicy
SetProcessDEPPolicy() is only supported by 32-bit Windows processes. On 64-bit
Windows it fails with ERROR_NOT_SUPPORTED (DEP is always enabled on 64-bit).
More info:
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setprocessdeppolicy
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index 8ad32f4bdb..8848ce320d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -877,9 +877,6 @@ bool AppInitBasicSetup() _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif #ifdef WIN32 - // Enable Data Execution Prevention (DEP) - SetProcessDEPPolicy(PROCESS_DEP_ENABLE); - // Enable heap terminate-on-corruption HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0); #endif |