removed some asserts

This commit is contained in:
mrexodia 2017-05-23 23:05:54 +02:00
parent b0b4f5ded3
commit 90c2764676
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 4 additions and 4 deletions

View File

@ -247,7 +247,7 @@ public:
return 0;
auto thread = threadFromHandle(hActiveThread);
if(!thread)
__debugbreak(); //return 0;
return 0;
if(mIsRunning)
thread->RegReadContext();
return thread->registers.Get(registerFromDword(IndexOfRegister));
@ -257,7 +257,7 @@ public:
{
auto thread = threadFromHandle(hActiveThread);
if (!thread)
__debugbreak(); //return false;
return false;
if(mIsRunning)
thread->RegReadContext();
thread->registers.Set(registerFromDword(IndexOfRegister), NewRegisterValue);
@ -272,7 +272,7 @@ public:
return false;
auto thread = threadFromHandle(hActiveThread);
if (!thread || !titcontext)
__debugbreak(); //return false;
return false;
if(mIsRunning)
thread->RegReadContext();
memset(titcontext, 0, sizeof(TITAN_ENGINE_CONTEXT_t));
@ -316,7 +316,7 @@ public:
{
auto thread = threadFromHandle(hActiveThread);
if (!thread || !titcontext)
__debugbreak(); //return false;
return false;
if(mIsRunning)
thread->RegReadContext();
thread->registers.Gax = titcontext->cax;