在 2026-5-30 23:39, Pali Rohár 写道:
Other winpthreads tests (pthread_cancel and pthread_exit) are already doing it.It is needed for older msvcrt.dll library used on WinNT and Win9x systems which indirectly via CreateThread function always dereference passed address and stores there the thread id. So NULL value with those older msvcrt.dll version cause process crash and needs to be avoided. --- mingw-w64-libraries/winpthreads/src/thread.c | 3 ++- mingw-w64-libraries/winpthreads/tests/clock/t_nanosleep.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Pushed this one, too. -- 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
