在 2026-8-23 20:08, Pali Rohár 写道:
Function _beginthreadex in msvcr70+ use dummy stack value for thrdaddr
pointer argument if caller specify NULL. This seems to be for compatibility
with older Windows versions where CreateThread crashes if NULL thrdaddr
pointer is supplied.

Pass pointer to dummy stack value in mingw-w64 i386 _beginthreadex wrapper
if the supplied pointer is NULL. This allows allows applications to call
_beginthreadex with NULL thrdaddr argument for CRT any build without
crashing on older systems.
---
  mingw-w64-crt/misc/i386__beginthreadex.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)


Pushed, too.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to