Skip to content

Commit 3d5d7aa

Browse files
committed
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
1 parent f2645c2 commit 3d5d7aa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/init.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,9 +877,6 @@ bool AppInitBasicSetup()
877877
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
878878
#endif
879879
#ifdef WIN32
880-
// Enable Data Execution Prevention (DEP)
881-
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
882-
883880
// Enable heap terminate-on-corruption
884881
HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);
885882
#endif

0 commit comments

Comments
 (0)