X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43a6124f651fe08a8f8a9529e5d495017ebd62b7..f38f68999028a8ff8d3cd0b1cf4a0fc94af805b0:/src/msw/main.cpp?ds=sidebyside 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