StepInto: close thread handle after setting context

This commit is contained in:
Mattiwatti 2019-05-15 21:52:53 +02:00
parent 7ad288f30e
commit 97d8459101
No known key found for this signature in database
GPG Key ID: D40D1DBE299B83EA
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);
myDBGContext.EFlags |= UE_TRAP_FLAG;
SetThreadContext(hActiveThread, &myDBGContext);
EngineCloseHandle(hActiveThread);
engineStepActive = true;
engineStepCallBack = StepCallBack;
engineStepCount = 0;