mirror of https://github.com/x64dbg/GleeBug
removed some asserts
This commit is contained in:
parent
b0b4f5ded3
commit
90c2764676
|
|
@ -247,7 +247,7 @@ public:
|
||||||
return 0;
|
return 0;
|
||||||
auto thread = threadFromHandle(hActiveThread);
|
auto thread = threadFromHandle(hActiveThread);
|
||||||
if(!thread)
|
if(!thread)
|
||||||
__debugbreak(); //return 0;
|
return 0;
|
||||||
if(mIsRunning)
|
if(mIsRunning)
|
||||||
thread->RegReadContext();
|
thread->RegReadContext();
|
||||||
return thread->registers.Get(registerFromDword(IndexOfRegister));
|
return thread->registers.Get(registerFromDword(IndexOfRegister));
|
||||||
|
|
@ -257,7 +257,7 @@ public:
|
||||||
{
|
{
|
||||||
auto thread = threadFromHandle(hActiveThread);
|
auto thread = threadFromHandle(hActiveThread);
|
||||||
if (!thread)
|
if (!thread)
|
||||||
__debugbreak(); //return false;
|
return false;
|
||||||
if(mIsRunning)
|
if(mIsRunning)
|
||||||
thread->RegReadContext();
|
thread->RegReadContext();
|
||||||
thread->registers.Set(registerFromDword(IndexOfRegister), NewRegisterValue);
|
thread->registers.Set(registerFromDword(IndexOfRegister), NewRegisterValue);
|
||||||
|
|
@ -272,7 +272,7 @@ public:
|
||||||
return false;
|
return false;
|
||||||
auto thread = threadFromHandle(hActiveThread);
|
auto thread = threadFromHandle(hActiveThread);
|
||||||
if (!thread || !titcontext)
|
if (!thread || !titcontext)
|
||||||
__debugbreak(); //return false;
|
return false;
|
||||||
if(mIsRunning)
|
if(mIsRunning)
|
||||||
thread->RegReadContext();
|
thread->RegReadContext();
|
||||||
memset(titcontext, 0, sizeof(TITAN_ENGINE_CONTEXT_t));
|
memset(titcontext, 0, sizeof(TITAN_ENGINE_CONTEXT_t));
|
||||||
|
|
@ -316,7 +316,7 @@ public:
|
||||||
{
|
{
|
||||||
auto thread = threadFromHandle(hActiveThread);
|
auto thread = threadFromHandle(hActiveThread);
|
||||||
if (!thread || !titcontext)
|
if (!thread || !titcontext)
|
||||||
__debugbreak(); //return false;
|
return false;
|
||||||
if(mIsRunning)
|
if(mIsRunning)
|
||||||
thread->RegReadContext();
|
thread->RegReadContext();
|
||||||
thread->registers.Gax = titcontext->cax;
|
thread->registers.Gax = titcontext->cax;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue