diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-29 19:03:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-29 19:03:51 +0000 |
commit | dd96e20eb908dbbecf1a17fdeee0c44ed8b3a974 (patch) | |
tree | ebd667510913aa2bedef89a8d794a74eeda6e5be /src/core | |
parent | 66357371399956ad19ab667d3c2d49bfc7ea0095 (diff) |
slightly rewritten finger
git-svn-id: http://svn.miranda-ng.org/main/trunk@1244 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/miranda.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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");
|