X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..43f4e852a1b2ac37c3db6a2b87315192ac549191:/src/msw/main.cpp?ds=inline diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 3e4338ee95..06cc6a4771 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -202,7 +202,7 @@ int wxEntry(int& argc, wxChar **argv) #endif // wxUSE_BASE -#if wxUSE_GUI && defined(__WXMSW__) +#if wxUSE_GUI namespace { @@ -316,7 +316,7 @@ struct wxMSWCommandLineArguments argv = new wxChar *[argc + 1]; for ( int i = 0; i < argc; i++ ) { - argv[i] = wxStrdup(args[i].wx_str()); + argv[i] = wxStrdup(args[i].t_str()); } // argv[] must be NULL-terminated @@ -358,7 +358,9 @@ wxMSWEntryCommon(HINSTANCE hInstance, int nCmdShow) // remember the parameters Windows gave us wxSetInstance(hInstance); +#ifdef __WXMSW__ wxApp::m_nCmdShow = nCmdShow; +#endif // parse the command line: we can't use pCmdLine in Unicode build so it is // simpler to never use it at all (this also results in a more correct @@ -414,7 +416,7 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance, return wxEntry(wxArgs.argc, wxArgs.argv); } -#endif // wxUSE_GUI && __WXMSW__ +#endif // wxUSE_GUI // ---------------------------------------------------------------------------- // global HINSTANCE