diff options
Diffstat (limited to 'win32_threads.c')
-rw-r--r-- | win32_threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32_threads.c b/win32_threads.c index 2db60f8a..f6edb431 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -2042,7 +2042,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, /* Invoke SetThreadDescription(). Cast the function pointer to word */ /* first to avoid "incompatible function types" compiler warning. */ - hr = ((HRESULT (WINAPI *)(HANDLE, const WCHAR *)) + hr = (*(HRESULT (WINAPI *)(HANDLE, const WCHAR *)) (word)setThreadDescription_fn)(GetCurrentThread(), name_buf); if (FAILED(hr)) WARN("SetThreadDescription failed\n", 0); @@ -2775,8 +2775,8 @@ GC_INNER void GC_thr_init(void) if (hK32) { FARPROC pfn = GetProcAddress(hK32, "IsWow64Process"); if (pfn - && !(*(BOOL (WINAPI*)(HANDLE, BOOL*))pfn)(GetCurrentProcess(), - &isWow64)) + && !(*(BOOL (WINAPI*)(HANDLE, BOOL*))(word)pfn)( + GetCurrentProcess(), &isWow64)) isWow64 = FALSE; /* IsWow64Process failed */ } # endif |