fuck msvc
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
6b70678ddb
commit
3b283ce5c3
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,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…
Add table
Add a link
Reference in a new issue