Honor no-console mode for debuggee launch

This commit is contained in:
Duncan Ogilvie 2026-04-13 11:22:28 +02:00
parent a62925db7a
commit 7a114df3d5
1 changed files with 6 additions and 3 deletions

View File

@ -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;