From 451c85e46598b6a70f06a95ca5248618081e6ab8 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 19 May 2019 23:33:13 +0200 Subject: [PATCH] Do not silently swallow exceptions when detaching --- TitanEngine/TitanEngine.Debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TitanEngine/TitanEngine.Debugger.cpp b/TitanEngine/TitanEngine.Debugger.cpp index 1231ed1..49fce80 100644 --- a/TitanEngine/TitanEngine.Debugger.cpp +++ b/TitanEngine/TitanEngine.Debugger.cpp @@ -624,7 +624,7 @@ __declspec(dllexport) bool TITCALL DetachDebuggerEx(DWORD ProcessId) SetThreadContext(hActiveThread, &myDBGContext); EngineCloseHandle(hActiveThread); } - ContinueDebugEvent(DBGEvent.dwProcessId, DBGEvent.dwThreadId, DBG_CONTINUE); + ContinueDebugEvent(DBGEvent.dwProcessId, DBGEvent.dwThreadId, DBGCode); ThreaderResumeProcess(); return DetachDebugger(ProcessId); }