From 524b5866cff1bc335daa9964d113972a25150c12 Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Thu, 23 Apr 2026 09:33:44 +0200 Subject: [PATCH] fix: Broken string cast in Windows GetModuleHandle{A,W} call --- core/shared/platform/windows/win_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/platform/windows/win_thread.c b/core/shared/platform/windows/win_thread.c index 1f6a57ebbf..5c826b16b5 100644 --- a/core/shared/platform/windows/win_thread.c +++ b/core/shared/platform/windows/win_thread.c @@ -159,7 +159,7 @@ os_thread_sys_init() if (os_mutex_init(&thread_data_list_lock) != BHT_OK) goto fail5; - if ((module = GetModuleHandle((LPCTSTR) "kernel32"))) { + if ((module = GetModuleHandle(TEXT("kernel32")))) { *(void **)&GetCurrentThreadStackLimits_Kernel32 = GetProcAddress(module, "GetCurrentThreadStackLimits"); }