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:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user