StepInto: close thread handle after setting context

This commit is contained in:
Mattiwatti 2019-05-15 21:52:53 +02:00 committed by Duncan Ogilvie
parent 7ad288f30e
commit 357759757d
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ __declspec(dllexport) void TITCALL StepInto(LPVOID StepCallBack)
GetThreadContext(hActiveThread, &myDBGContext); GetThreadContext(hActiveThread, &myDBGContext);
myDBGContext.EFlags |= UE_TRAP_FLAG; myDBGContext.EFlags |= UE_TRAP_FLAG;
SetThreadContext(hActiveThread, &myDBGContext); SetThreadContext(hActiveThread, &myDBGContext);
EngineCloseHandle(hActiveThread);
engineStepActive = true; engineStepActive = true;
engineStepCallBack = StepCallBack; engineStepCallBack = StepCallBack;
engineStepCount = 0; engineStepCount = 0;