Skip to content

Commit 2a4653b

Browse files
authored
Merge pull request #2440 from gmittert/PsuedoGetMeAThread
Use GetThreadId instead of Storing Handles Directly
2 parents e556ca7 + f38b777 commit 2a4653b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static void _runLoopTimerWithBlockContext(CFRunLoopTimerRef timer, void *opaqueB
153153
#if TARGET_OS_WIN32
154154

155155
static _CFThreadRef const kNilPthreadT = INVALID_HANDLE_VALUE;
156-
#define pthreadPointer(a) a
156+
#define pthreadPointer(a) (GetThreadId(a))
157157
typedef int kern_return_t;
158158
#define KERN_SUCCESS 0
159159

0 commit comments

Comments
 (0)