]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected wxShell() ret code
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Sep 2002 00:41:16 +0000 (00:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Sep 2002 00:41:16 +0000 (00:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/utils.cpp

index 9322dcb46e72e70a0b1da2f27c1a483422038a34..047ef9a22e5cc4663250b83e7d7fe04502fdf4af 100644 (file)
@@ -867,7 +867,7 @@ bool wxShell(const wxString& command)
         cmd.Printf(wxT("%s /c %s"), shell, command.c_str());
     }
 
-    return wxExecute(cmd, TRUE /* sync */) != 0;
+    return wxExecute(cmd, wxEXEC_SYNC) == 0;
 }
 
 // Shutdown or reboot the PC