X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43a6124f651fe08a8f8a9529e5d495017ebd62b7..c263eb03846c1b1439bf67d1d831255024278adf:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 12feee5bdf..a8bee7283b 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -69,12 +69,18 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance, // break the command line in words wxArrayString args; + const wxChar *cmdLine = ::GetCommandLine(); if ( cmdLine ) { args = wxCmdLineParser::ConvertStringToArgs(cmdLine); } +#ifdef __WXWINCE__ + // WinCE doesn't insert the program itself, so do it ourselves. + args.Insert(wxGetFullModuleName(), 0); +#endif + int argc = args.GetCount(); // +1 here for the terminating NULL