On Wed, 1 Sep 2021, Saulius Krasuckas wrote: [...]
If you remove it, a guy working on some old app (that misbehaves using Wine) will possibly try to add it back. Because one will not know the API crashes on newer Windows.
It's not clear that there ever was a Windows version where the API did not crash when given a NULL input pointer.
Note that the NULL pointer being tested is an _input_ pointer (though that's not entirely obvious from the call). There is little the API can do without that single input.