From 357759757d394be85b48be77b40408ef13c373df Mon Sep 17 00:00:00 2001 From: Mattiwatti Date: Wed, 15 May 2019 21:52:53 +0200 Subject: [PATCH] StepInto: close thread handle after setting context --- TitanEngine/TitanEngine.Debugger.Control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TitanEngine/TitanEngine.Debugger.Control.cpp b/TitanEngine/TitanEngine.Debugger.Control.cpp index c541b17..07e0305 100644 --- a/TitanEngine/TitanEngine.Debugger.Control.cpp +++ b/TitanEngine/TitanEngine.Debugger.Control.cpp @@ -56,6 +56,7 @@ __declspec(dllexport) void TITCALL StepInto(LPVOID StepCallBack) GetThreadContext(hActiveThread, &myDBGContext); myDBGContext.EFlags |= UE_TRAP_FLAG; SetThreadContext(hActiveThread, &myDBGContext); + EngineCloseHandle(hActiveThread); engineStepActive = true; engineStepCallBack = StepCallBack; engineStepCount = 0;