From 4b0bcfb0f7d5187951afdca1b3f442cb6d925721 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 3 Nov 2025 21:06:51 +0100 Subject: [compat] Windows 8.1 support (#2772) Signed-off-by: lizzie Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2772 Reviewed-by: Caio Oliveira Reviewed-by: crueter Reviewed-by: MaranBr Co-authored-by: lizzie Co-committed-by: lizzie --- src/common/thread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/thread.cpp') diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 832232cd15..f5abe46324 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -81,7 +81,10 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) { // Sets the debugger-visible name of the current thread. void SetCurrentThreadName(const char* name) { - SetThreadDescription(GetCurrentThread(), UTF8ToUTF16W(name).data()); + if (auto pf = (decltype(&SetThreadDescription))(void*)GetProcAddress(GetModuleHandle(TEXT("KernelBase.dll")), "SetThreadDescription"); pf) + pf(GetCurrentThread(), UTF8ToUTF16W(name).data()); // Windows 10+ + else + ; // No-op } #else // !MSVC_VER, so must be POSIX threads -- cgit v1.2.3