1
0
Fork 0

Threads problem: FIXED

This commit is contained in:
SmilingWolf 2014-12-12 21:53:43 +01:00
parent df4159720f
commit 072f18b3c1
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -1854,6 +1854,9 @@ CMDRESULT cbDebugLoadLib(int argc, char* argv[])
SetContextDataEx(LoadLibThread, UE_CIP, (uint)ASMAddr);
SetBPX((uint)ASMAddr + counter, UE_SINGLESHOOT | UE_BREAKPOINT_TYPE_INT3, (void*)cbLoadLibBPX);
threadsuspendall();
ResumeThread(LoadLibThread);
unlock(WAITID_RUN);
return STATUS_CONTINUE;
@ -1873,6 +1876,7 @@ void cbLoadLibBPX()
SetFullContextDataEx(LoadLibThread, &backupctx);
VirtualFreeEx(fdProcessInfo->hProcess, DLLNameMem, 0, MEM_RELEASE);
VirtualFreeEx(fdProcessInfo->hProcess, ASMAddr, 0, MEM_RELEASE);
threadresumeall();
//update GUI
GuiSetDebugState(paused);
DebugUpdateGui(GetContextDataEx(hActiveThread, UE_CIP), true);