X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5da0ce7cb746318511b3974b7882c72c0de45e2..10d302224e3555520f3e3c29d4dc7b7a9654b295:/src/palmos/main.cpp diff --git a/src/palmos/main.cpp b/src/palmos/main.cpp index c7658e324f..2c4f957771 100644 --- a/src/palmos/main.cpp +++ b/src/palmos/main.cpp @@ -26,9 +26,9 @@ #ifndef WX_PRECOMP #include "wx/event.h" + #include "wx/app.h" #endif //WX_PRECOMP -#include "wx/app.h" #include "wx/cmdline.h" #if wxUSE_GUI @@ -48,12 +48,12 @@ int wxEntry() */ wxArrayString args; int argc = args.GetCount(); - // +1 here for the terminating NULL wxChar **argv = new wxChar *[argc + 1]; for ( int i = 0; i < argc; i++ ) { - argv[i] = wxStrdup(args[i]); + //argv[i] = wxStrdup(args[i]); + argv[i] = wxStrdup(wxConvLibc.cMB2WX(args[i])); } // argv[] must be NULL-terminated