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"); }