From 346bb3a2e9d5543167467c22fc5018d7ec3b011c Mon Sep 17 00:00:00 2001 From: Judah Caruso Date: Tue, 18 Nov 2025 19:58:46 -0700 Subject: [PATCH] osthread: windows fix --- osthread/osthread_windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osthread/osthread_windows.go b/osthread/osthread_windows.go index 0c7cff3..1273fb3 100644 --- a/osthread/osthread_windows.go +++ b/osthread/osthread_windows.go @@ -18,7 +18,8 @@ var ( ) func init() { - kernel32 := syscall.NewLazyDLL("kernel.dll").Handle() + kernel32 := syscall.NewLazyDLL("kernel32.dll").Handle() purego.RegisterLibFunc(&getCurrentThreadId, kernel32, "GetCurrentThreadId") - mainThreadId = getCurrentThreadId() + + mainThreadId = getCurrentThreadId() // init is always called on the main thread }