mirror of https://github.com/FreeRDP/FreeRDP
Fixed mistake with bitwise operator in previous two commits
This commit is contained in:
parent
80af54b169
commit
a3a3efe31e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue