1
0
Fork 0

DBG: set foreground on cbSystemBreakpoint

This commit is contained in:
mrexodia 2016-11-03 04:10:24 +01:00
parent 1c1f78fb99
commit 5f6060f9df
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 3 additions and 0 deletions

View File

@ -1527,6 +1527,9 @@ static void cbSystemBreakpoint(void* ExceptionData) // TODO: System breakpoint e
{ {
hActiveThread = ThreadGetHandle(((DEBUG_EVENT*)GetDebugData())->dwThreadId); hActiveThread = ThreadGetHandle(((DEBUG_EVENT*)GetDebugData())->dwThreadId);
//Get on top of things
SetForegroundWindow(GuiGetWindowHandle());
// Update GUI (this should be the first triggered event) // Update GUI (this should be the first triggered event)
duint cip = GetContextDataEx(hActiveThread, UE_CIP); duint cip = GetContextDataEx(hActiveThread, UE_CIP);
GuiDumpAt(MemFindBaseAddr(cip, 0, true)); //dump somewhere GuiDumpAt(MemFindBaseAddr(cip, 0, true)); //dump somewhere