diff options
Diffstat (limited to 'src/core/miranda.cpp')
-rw-r--r-- | src/core/miranda.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp index 66a3ca8e80..780283b48f 100644 --- a/src/core/miranda.cpp +++ b/src/core/miranda.cpp @@ -208,11 +208,20 @@ void CheckRestart() }
}
+static void crtErrorHandler(const wchar_t*, const wchar_t*, const wchar_t*, unsigned, uintptr_t)
+{
+}
+
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int)
{
hInst = hInstance;
hMainThreadId = GetCurrentThreadId();
+ _set_invalid_parameter_handler(&crtErrorHandler);
+ #ifdef _DEBUG
+ _CrtSetReportMode(_CRT_ASSERT, 0);
+ #endif
+
CmdLine_Parse(cmdLine);
setlocale(LC_ALL, "");
|