X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da00a8bb164dd1f58dd0bb211475538a375867b4..4b056ef54f29582e2a5154bf148f7ebc5877b51b:/src/common/process.cpp diff --git a/src/common/process.cpp b/src/common/process.cpp index d98c7178ef..7c23c47620 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -63,10 +63,11 @@ void wxProcess::Init(wxEvtHandler *parent, int id, int flags) } /* static */ -wxProcess *wxProcess::Open(const wxString& cmd) +wxProcess *wxProcess::Open(const wxString& cmd, int flags) { + wxASSERT_MSG( !(flags & wxEXEC_SYNC), wxT("wxEXEC_SYNC should not be used." )); wxProcess *process = new wxProcess(wxPROCESS_REDIRECT); - if ( !wxExecute(cmd, wxEXEC_ASYNC, process) ) + if ( !wxExecute(cmd, flags, process) ) { // couldn't launch the process delete process;