X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3afdfec4536f413df63a690964a9601076db7652..26c36d7505555ffb4b103780cba263693e0f2af9:/src/unix/utilsunx.cpp?ds=sidebyside diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 33caa09fb5..4d670f4ea0 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -316,10 +316,10 @@ long wxExecute( const wxString& command, int flags, wxProcess *process ) long lRc; #if defined(__DARWIN__) // wxMacExecute only executes app bundles. - // It returns -1 if the target is not an app bundle, thus falling through - // to the regular wxExecute for non app bundles. + // It returns an error code if the target is not an app bundle, thus falling + // through to the regular wxExecute for non app bundles. lRc = wxMacExecute(argv, flags, process); - if( lRc != -1) + if( lRc != ((flags & wxEXEC_SYNC) ? -1 : 0)) return lRc; #endif