From dfd8b2b45877db0570bc59e450589e0baa5cf761 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 18 Jun 2024 16:51:16 +0800 Subject: [PATCH] Make sure not to hide the console window of the running process on Windows. Fix https://github.com/Vector35/debugger/issues/579 --- core/adapters/dbgengadapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/adapters/dbgengadapter.cpp b/core/adapters/dbgengadapter.cpp index c48fc14..f474287 100644 --- a/core/adapters/dbgengadapter.cpp +++ b/core/adapters/dbgengadapter.cpp @@ -206,7 +206,7 @@ bool DbgEngAdapter::LaunchDbgSrv(const std::string& commandLine) memset(&si, 0, sizeof(si)); si.cb = sizeof(si); memset(&pi, 0, sizeof(pi)); - if (!CreateProcessA(NULL, (LPSTR)commandLine.c_str(), NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi)) + if (!CreateProcessA(NULL, (LPSTR)commandLine.c_str(), NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) { return false; }