- fixed ThreaderIsThreadActive (first it suspended the thread when it wasnt suspended already)

This commit is contained in:
Mr. eXoDia 2014-03-16 01:12:01 +01:00
parent 10a7373eb3
commit 4e1685b8ea
1 changed files with 3 additions and 2 deletions

View File

@ -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()