Fixed mistake with bitwise operator in previous two commits

This commit is contained in:
Bryan Everly 2015-05-20 12:17:05 -04:00
parent 80af54b169
commit a3a3efe31e
1 changed files with 2 additions and 4 deletions

View File

@ -585,12 +585,10 @@ DWORD GetCurrentThreadId(VOID)
pthread_t tid;
tid = pthread_self();
#ifdef __OpenBSD__
/* Since pthread_t can be 64-bits on some systems, take just the */
/* lower 32-bits of it for the thread ID returned by this function. */
tid = tid && 0xffffffff;
#endif
return (DWORD) (tid);
tid = (long)tid & 0xffffffff;
return (DWORD) tid;
}
DWORD ResumeThread(HANDLE hThread)