Lasse Collin wrote:

> On 2026-08-16 Pali Rohár wrote:
>> During testing of those functions with older msvcrt libraries I got
>> crashes when I passed NULL pointer. I guess that current web
>> documentation matches the UCRT behavior, which accepts NULL.
>
> It also works on WinXP with msvcrt.

Documentation for `CreateThread` from Platform SDK for Windows Server 2003[1] 
says that the last parameter must be non-NULL on Windows 95/98/Me.

I'm not sure if it is worth to add this attribute just for the sake of ancient 
Windows versions. In case of CRT functions `_beginthread[ex]`, I think we are 
better to provide a wrapper which could use a stack variable if this argument 
is NULL.

[1] https://www.microsoft.com/en-us/download/details.aspx?id=15656

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

Reply via email to