Browse Source

fuck msvc

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/2772/head
lizzie 5 months ago
parent
commit
d8a9ff1910
  1. 2
      src/common/thread.cpp

2
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

Loading…
Cancel
Save