Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,396 Lines • ▼ Show 20 Lines | |||||
bool AppInitBasicSetup() { | bool AppInitBasicSetup() { | ||||
// Step 1: setup | // Step 1: setup | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | ||||
// Turn off Microsoft heap dump noise | // Turn off Microsoft heap dump noise | ||||
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); | _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); | ||||
_CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, nullptr, | _CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, nullptr, | ||||
OPEN_EXISTING, 0, 0)); | OPEN_EXISTING, 0, 0)); | ||||
#endif | |||||
#if _MSC_VER >= 1400 | |||||
// Disable confusing "helpful" text message on abort, Ctrl-C | // Disable confusing "helpful" text message on abort, Ctrl-C | ||||
_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) | // Enable Data Execution Prevention (DEP) | ||||
// Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 | // Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 | ||||
// A failure is non-critical and needs no further attention! | // A failure is non-critical and needs no further attention! | ||||
#ifndef PROCESS_DEP_ENABLE | #ifndef PROCESS_DEP_ENABLE | ||||
▲ Show 20 Lines • Show All 1,076 Lines • Show Last 20 Lines |