在 2026-2-25 04:23, Pali Rohár 写道:
Honestly, I think we shouldn't attempt to load functions from both kernel32.dll and kernelbase.dll. For Windows Server 2016, since kernel32 does not export this function, it makes a little sense to behave as if this function wasn't available on that system...Hello, I would propose following attached change instead.winpthreads_SetThreadDescription.patch From 910cb0d9b9a30c879079e263f96dc7ead416506a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?=<[email protected]> Date: Sun, 25 Jan 2026 12:22:31 +0100 Subject: [PATCH] winpthreads: Try to load SetThreadDescription from kernel32.dll and fallback to kernelbase.dll The SetThreadDescription function should be called from the kernel32.dll library. Document why the fallback to kernelbase.dll is needed for compatibility purposes. --- mingw-w64-libraries/winpthreads/src/misc.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
But this change doesn't harm anyway. So I have applied it and pushed it. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
