Do not silently swallow exceptions when detaching

This commit is contained in:
Duncan Ogilvie 2019-05-19 23:33:13 +02:00
parent e76867196e
commit 451c85e465
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

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