Add comment explaining the role of wxMacExecute

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2005-04-22 14:19:06 +00:00
parent c1edaaeac6
commit 3afdfec453

View File

@@ -315,7 +315,11 @@ long wxExecute( const wxString& command, int flags, wxProcess *process )
long lRc; long lRc;
#if defined(__DARWIN__) #if defined(__DARWIN__)
if( (lRc = wxMacExecute(argv, flags, process)) != -1) // 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.
lRc = wxMacExecute(argv, flags, process);
if( lRc != -1)
return lRc; return lRc;
#endif #endif