]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/main.cpp
Fixed OS/2 compilation after wxDC changes
[wxWidgets.git] / src / palmos / main.cpp
index c7658e324f877d16e3296362fa089a3ab5be23d0..2c4f957771865b993d99bc6144b438ac1df699a9 100644 (file)
@@ -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