projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added wxEXEC_NODISABLE
[wxWidgets.git]
/
src
/
msw
/
main.cpp
diff --git
a/src/msw/main.cpp
b/src/msw/main.cpp
index 12feee5bdfa443b7e5d52abe9fb1e1dbe7ac2a12..a8bee7283bd1ad4632b9623432e0bd2885258314 100644
(file)
--- 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;
// break the command line in words
wxArrayString args;
+
const wxChar *cmdLine = ::GetCommandLine();
if ( cmdLine )
{
args = wxCmdLineParser::ConvertStringToArgs(cmdLine);
}
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
int argc = args.GetCount();
// +1 here for the terminating NULL