summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 0befbff4ae..684085fdb0 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -50,6 +50,7 @@ Init_native_thread(void)
rb_thread_t *th = GET_THREAD();
ruby_native_thread_key = TlsAlloc();
+ ruby_thread_set_native(th);
DuplicateHandle(GetCurrentProcess(),
GetCurrentThread(),
GetCurrentProcess(),