From 24fef19f5786111913bae99e49361d0111ee219b Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Sat, 28 Mar 2015 01:35:26 +0100 Subject: [PATCH] even more fixes --- GleeBug/Debugger.Loop.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GleeBug/Debugger.Loop.cpp b/GleeBug/Debugger.Loop.cpp index 0ed1188..39c56d0 100644 --- a/GleeBug/Debugger.Loop.cpp +++ b/GleeBug/Debugger.Loop.cpp @@ -30,6 +30,9 @@ namespace GleeBug //process housekeeping _processes.erase(_debugEvent.dwProcessId); + + //set the current process + _curProcess = nullptr; } void Debugger::createThreadEvent(const CREATE_THREAD_DEBUG_INFO & createThread) @@ -52,6 +55,9 @@ namespace GleeBug //thread housekeeping _curProcess->threads.erase(_debugEvent.dwThreadId); + + //set the current thread + _curProcess->curThread = nullptr; } void Debugger::loadDllEvent(const LOAD_DLL_DEBUG_INFO & loadDll)