mirror of https://github.com/x64dbg/TitanEngine
- fixed ThreaderIsThreadActive (first it suspended the thread when it wasnt suspended already)
This commit is contained in:
parent
10a7373eb3
commit
4e1685b8ea
|
|
@ -208,9 +208,10 @@ __declspec(dllexport) bool TITCALL ThreaderIsThreadActive(HANDLE hThread)
|
||||||
if(SuspendThread(hThread)) //if previous suspend count is above 0 (which means thread is suspended)
|
if(SuspendThread(hThread)) //if previous suspend count is above 0 (which means thread is suspended)
|
||||||
{
|
{
|
||||||
ResumeThread(hThread); //decrement suspend count
|
ResumeThread(hThread); //decrement suspend count
|
||||||
return true;
|
return false; //meaning the thread is not active
|
||||||
}
|
}
|
||||||
return false;
|
ResumeThread(hThread); //decrement suspend count
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
__declspec(dllexport) bool TITCALL ThreaderIsAnyThreadActive()
|
__declspec(dllexport) bool TITCALL ThreaderIsAnyThreadActive()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue