From d8a9ff1910eba7f92ba3b2e421fd83e256c6ba7b Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 18 Oct 2025 09:41:40 +0000 Subject: [PATCH] fuck msvc Signed-off-by: lizzie --- src/common/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 3aad74e7f8..f5abe46324 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -81,7 +81,7 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) { // Sets the debugger-visible name of the current thread. void SetCurrentThreadName(const char* name) { - if (auto pf = (decltype(&SetThreadDescription))GetProcAddress(GetModuleHandle(TEXT("KernelBase.dll")), "SetThreadDescription"); pf) + if (auto pf = (decltype(&SetThreadDescription))(void*)GetProcAddress(GetModuleHandle(TEXT("KernelBase.dll")), "SetThreadDescription"); pf) pf(GetCurrentThread(), UTF8ToUTF16W(name).data()); // Windows 10+ else ; // No-op