X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfe780fb99dc42d454625b1ea88ae687c54acbf1..5bd22e2636e94befad993db415b98f3c4858caa2:/src/msw/utilsexc.cpp?ds=sidebyside diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 6ff8518ec4..aae349314d 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -26,6 +26,7 @@ #include "wx/app.h" #endif +#include "wx/log.h" #include "wx/msw/private.h" #include @@ -39,10 +40,6 @@ #ifdef __GNUWIN32__ #include #include -#ifndef __MINGW32__ -#include -#endif - #endif #ifdef __WIN32__ @@ -144,6 +141,8 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler) if (((long)result) <= 32) { free(cl); + + wxLogSysError(_("Can't execute command '%s'"), command.c_str()); return 0; } @@ -200,3 +199,16 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler) return(instanceID); #endif } + +long wxExecute(char **argv, bool sync, wxProcess *handler) +{ + wxString command = ""; + + while (*argv != NULL) { + command += *argv; + command += ' '; + argv++; + } + command.RemoveLast(); + return wxExecute(command, sync, handler); +}