mirror of https://github.com/x64dbg/TitanEngine
Unlock breakpoint lock for access violation/guard page custom handlers
Cleaner implementation of #40, credit to @linsmod for finding the bug
This commit is contained in:
parent
ccac889f27
commit
d932d747d1
|
|
@ -1193,6 +1193,9 @@ __declspec(dllexport) void TITCALL DebugLoop()
|
||||||
// Debuggee generated the GUARD_PAGE or ACCESS_VIOLATION exception
|
// Debuggee generated the GUARD_PAGE or ACCESS_VIOLATION exception
|
||||||
if(DBGCode == DBG_EXCEPTION_NOT_HANDLED)
|
if(DBGCode == DBG_EXCEPTION_NOT_HANDLED)
|
||||||
{
|
{
|
||||||
|
// User callbacks may block while another thread calls an API that takes this lock.
|
||||||
|
breakpointLock.unlock();
|
||||||
|
|
||||||
if(isAccessViolation)
|
if(isAccessViolation)
|
||||||
{
|
{
|
||||||
if(DBGCustomHandler->chAccessViolation != NULL)
|
if(DBGCustomHandler->chAccessViolation != NULL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue