在 2026-1-15 22:54, Martin Storsjö 写道:
On Sat, 20 Dec 2025, Pali Rohár wrote:Per MS documentation [1] the SetThreadDescription function should be called from the kernel32.dll library and not from the kernelbase.dll library.[1] - https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi- setthreaddescription--- mingw-w64-libraries/winpthreads/src/misc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)There may still be reasons for wanting to load this from kernelbase.dll - see https://code.ffmpeg.org/ FFmpeg/FFmpeg/commit/1f4fed5cc3be0737305e342f753c42716d6bf432// Although SetThreadDescription lives in kernel32.dll, on Windows Server 2016, // Windows 10 LTSB 2016 and Windows 10 version 1607, it was only available in // kernelbase.dll. So, load it from there for maximum coverage.
Oh thanks for the information. I will revert this once the CI passes. -- 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
