do {
_Sleep(1);
- if (_SuspendThread(hThread) == -1)
+ if (_SuspendThread(hThread) == (DWORD)-1)
break;
if (_GetThreadContext(hThread, ¤tContext) == 0)
if (IsContextChanged(¤tContext, &lastContext))
Args->Time++;
- if (_ResumeThread(hThread) == -1)
+ if (_ResumeThread(hThread) == (DWORD)-1)
break;
if (Args->Time >= TimeOut)