Make sure even if we're not reading from adb that we hide its window

This commit is contained in:
baldurk
2018-07-31 13:35:32 +01:00
parent 3d519698e6
commit 085b320ac2
+5 -2
View File
@@ -480,12 +480,15 @@ static PROCESS_INFORMATION RunProcess(const char *app, const char *workingDir, c
if(!SetHandleInformation(*phChildStdError_Rd, HANDLE_FLAG_INHERIT, 0))
RDCERR("Could not set pipe handle information");
si.dwFlags |= STARTF_USESHOWWINDOW // Hide the command prompt window from showing.
| STARTF_USESTDHANDLES;
si.dwFlags |= STARTF_USESTDHANDLES;
si.hStdOutput = hChildStdOutput_Wr;
si.hStdError = hChildStdError_Wr;
}
// if it's a utility launch, hide the command prompt window from showing
if(phChildStdOutput_Rd || internal)
si.dwFlags |= STARTF_USESHOWWINDOW;
if(!internal)
RDCLOG("Running process %s", app);