X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da36f5446f10eace61869a3e42672667f344e63b..520e470fdd0daef09c77938db642e4583933c90d:/src/msw/app.cpp diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 0182dcc3a0..7d5b43fe2c 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -10,14 +10,14 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ - #pragma implementation "app.h" +#pragma implementation "app.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #if defined(__BORLANDC__) - #pragma hdrstop +#pragma hdrstop #endif #ifndef WX_PRECOMP @@ -51,7 +51,8 @@ #endif // use debug CRT functions for memory leak detections in VC++ -/* This still doesn't work for me, Vadim. +/* Here we go again commenting it out. PLEASE don't + * uncomment this again. #if defined(__WXDEBUG__) && defined(_MSC_VER) // VC++ uses this macro as debug/release mode indicator #ifndef _DEBUG @@ -114,7 +115,8 @@ bool wxApp::Initialize() { wxBuffer = new char[1500]; -/* +/* PLEASE don't uncomment this again. IT DOESN'T WORK when building + * using the makefile. #if defined(__WXDEBUG__) && defined(_MSC_VER) // do check for memory leaks on program exit // (another useful flag is _CRTDBG_DELAY_FREE_MEM_DF which doesn't free @@ -352,7 +354,7 @@ void wxApp::ConvertToStandardCommandArgs(char* lpCmdLine) int count = 0; // Get application name - char name[500]; + char name[260]; // 260 is MAX_PATH value from windef.h ::GetModuleFileName(wxhInstance, name, WXSIZEOF(name)); // GNUWIN32 already fills in the first arg with the application name.