X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fe4a7c50f6d65642adad374e3b2fc6eb5f5b58a..8a31648287be0ef976f133de2786b137f1e98340:/src/msw/utilsexc.cpp?ds=inline diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 4dca1464f3..3fdf3b9aad 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -794,6 +794,10 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler, DWORD dwFlags = CREATE_SUSPENDED; #ifndef __WXWINCE__ + if ( (flags & wxEXEC_MAKE_GROUP_LEADER) && + (wxGetOsVersion() == wxOS_WINDOWS_NT) ) + dwFlags |= CREATE_NEW_PROCESS_GROUP; + dwFlags |= CREATE_DEFAULT_ERROR_MODE ; #else // we are assuming commands without spaces for now