X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43543d985b04d065178df50dbbc998786ff97282..5fc7ede910768d418a0b436e0046300712304d3b:/src/os2/app.cpp diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 72c419454c..7cb3bd50e6 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -93,7 +93,11 @@ HICON wxDEFAULT_MDIPARENTFRAME_ICON = (HICON) NULL; HBRUSH wxDisableButtonBrush = (HBRUSH) 0; -MRESULT wxWndProc(HWND, UINT, MPARAM, MPARAM); +MRESULT wxWndProc( HWND + ,ULONG + ,MPARAM + ,MPARAM + ); // =========================================================================== // implementation @@ -103,7 +107,6 @@ MRESULT wxWndProc(HWND, UINT, MPARAM, MPARAM); // wxApp // --------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler) BEGIN_EVENT_TABLE(wxApp, wxEvtHandler) @@ -111,7 +114,6 @@ MRESULT wxWndProc(HWND, UINT, MPARAM, MPARAM); EVT_END_SESSION(wxApp::OnEndSession) EVT_QUERY_END_SESSION(wxApp::OnQueryEndSession) END_EVENT_TABLE() -#endif //// Initialize bool wxApp::Initialize( @@ -399,7 +401,7 @@ int wxEntry( , char* argv[] ) { - HAB vHab; + HAB vHab = 0; if (!wxApp::Initialize(vHab)) return 0; @@ -508,6 +510,7 @@ wxApp::wxApp() wxApp::~wxApp() { +#ifdef wxUSE_UNICODE // Delete command-line args int i; for (i = 0; i < argc; i++) @@ -515,6 +518,7 @@ wxApp::~wxApp() delete[] argv[i]; } delete[] argv; +#endif } bool wxApp::Initialized() @@ -874,7 +878,7 @@ void wxExit() // Yield to incoming messages bool wxYield() { - HAB vHab; + HAB vHab = 0; QMSG vMsg; // We want to go back to the main message loop // if we see a WM_QUIT. (?)