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
This commit is contained in:
1 file changed
-3
@@ -877,9 +877,6 @@ bool AppInitBasicSetup()
|
|||||||
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Enable Data Execution Prevention (DEP)
|
|
||||||
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
|
||||||
|
|
||||||
// Enable heap terminate-on-corruption
|
// Enable heap terminate-on-corruption
|
||||||
HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);
|
HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user