diff --git a/src/thread.cpp b/src/thread.cpp index 77c1adc..eabcbbd 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -280,7 +280,7 @@ namespace bx // Try to use the new thread naming API from Win10 Creators update onwards if we have it typedef HRESULT (WINAPI *SetThreadDescriptionProc)(HANDLE, PCWSTR); SetThreadDescriptionProc SetThreadDescription = bx::functionCast( - GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetThreadDescription") + bx::dlsym(GetModuleHandleA("Kernel32.dll"), "SetThreadDescription") ); if (SetThreadDescription) {