From 7a114df3d590c75fd94b657bb96fbb5348bb29b6 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 13 Apr 2026 11:22:28 +0200 Subject: [PATCH] Honor no-console mode for debuggee launch --- TitanEngine/TitanEngine.Debugger.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TitanEngine/TitanEngine.Debugger.cpp b/TitanEngine/TitanEngine.Debugger.cpp index aaa9617..add5ecd 100644 --- a/TitanEngine/TitanEngine.Debugger.cpp +++ b/TitanEngine/TitanEngine.Debugger.cpp @@ -240,7 +240,10 @@ static bool HollowProcessWithoutASLR(const wchar_t* szFileName, PROCESS_INFORMAT __declspec(dllexport) void* TITCALL InitDebugW(wchar_t* szFileName, wchar_t* szCommandLine, wchar_t* szCurrentFolder) { - int creationFlags = CREATE_NEW_CONSOLE | DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS; + int creationFlags = DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS; + + if(engineDisableAslr) + creationFlags = CREATE_SUSPENDED; if(DebugDebuggingDLL) { @@ -251,9 +254,9 @@ __declspec(dllexport) void* TITCALL InitDebugW(wchar_t* szFileName, wchar_t* szC { creationFlags |= CREATE_NO_WINDOW; } - else if(engineDisableAslr) + else { - creationFlags = CREATE_NEW_CONSOLE | CREATE_SUSPENDED; + creationFlags |= CREATE_NEW_CONSOLE; } wchar_t* szFileNameCreateProcess;