From dd96e20eb908dbbecf1a17fdeee0c44ed8b3a974 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 29 Jul 2012 19:03:51 +0000 Subject: slightly rewritten finger git-svn-id: http://svn.miranda-ng.org/main/trunk@1244 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/miranda.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp index 133b4e1cda..1e13d9ad60 100644 --- a/src/core/miranda.cpp +++ b/src/core/miranda.cpp @@ -214,9 +214,10 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int) CmdLine_Parse(cmdLine); setlocale(LC_ALL, ""); -#ifdef _DEBUG - _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); -#endif + #ifdef _DEBUG + if ( CmdLine_GetOption( _T("memdebug"))) + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); + #endif HINSTANCE hUser32 = GetModuleHandleA("user32"); openInputDesktop = (pfnOpenInputDesktop)GetProcAddress (hUser32, "OpenInputDesktop"); -- cgit v1.2.3