X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79066131734040a7d01b87566fc1262e7fbe51ad..6c5672c0d441a8c8f1802262ca2583bd0c496d78:/src/msw/utilsexc.cpp?ds=sidebyside diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 69ee8c8c46..e550fca890 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -341,6 +341,10 @@ wxPipeInputStream::~wxPipeInputStream() bool wxPipeInputStream::IsAvailable() const { + // FIXME +#ifdef __WXWINE__ + return FALSE; +#else if ( !IsOpened() ) return FALSE; @@ -374,6 +378,7 @@ bool wxPipeInputStream::IsAvailable() const } return nAvailable != 0; +#endif } size_t wxPipeInputStream::OnSysRead(void *buffer, size_t len) @@ -892,16 +897,18 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler) #endif // Win16/32 } -long wxExecute(char **argv, int flags, wxProcess *handler) +long wxExecute(wxChar **argv, int flags, wxProcess *handler) { wxString command; - while ( *argv != NULL ) + for ( ;; ) { - command << *argv++ << ' '; - } + command += *argv++; + if ( !*argv ) + break; - command.RemoveLast(); + command += _T(' '); + } return wxExecute(command, flags, handler); }