From 085b320ac2efcd42714f0b7542a77c6b36b44390 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 31 Jul 2018 13:35:32 +0100 Subject: [PATCH] Make sure even if we're not reading from adb that we hide its window --- renderdoc/os/win32/win32_process.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/win32/win32_process.cpp b/renderdoc/os/win32/win32_process.cpp index 030bc5cc9..9332a38da 100644 --- a/renderdoc/os/win32/win32_process.cpp +++ b/renderdoc/os/win32/win32_process.cpp @@ -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);