mirror of https://github.com/x64dbg/TitanEngine
dont directly compare against TRUE
This commit is contained in:
parent
a3384e931f
commit
e7deed5ef4
|
|
@ -7,6 +7,6 @@ bool EngineCloseHandle(HANDLE myHandle)
|
|||
{
|
||||
DWORD HandleFlags;
|
||||
if(GetHandleInformation(myHandle, &HandleFlags) && HandleFlags!=HANDLE_FLAG_PROTECT_FROM_CLOSE)
|
||||
return (CloseHandle(myHandle)==TRUE);
|
||||
return !!CloseHandle(myHandle);
|
||||
return false;
|
||||
}
|
||||
|
|
@ -201,7 +201,7 @@ __declspec(dllexport) bool TITCALL ThreaderIsThreadStillRunning(HANDLE hThread)
|
|||
CONTEXT myDBGContext;
|
||||
memset(&myDBGContext, 0, sizeof(CONTEXT));
|
||||
myDBGContext.ContextFlags = CONTEXT_ALL;
|
||||
return (GetThreadContext(hThread, &myDBGContext)==TRUE);
|
||||
return !!GetThreadContext(hThread, &myDBGContext);
|
||||
}
|
||||
|
||||
__declspec(dllexport) bool TITCALL ThreaderIsThreadActive(HANDLE hThread)
|
||||
|
|
|
|||
Loading…
Reference in New Issue