https://bugs.winehq.org/show_bug.cgi?id=48471
--- Comment #2 from Vladimir Panteleev wine@thecybershadow.net --- Here is the result of running the above program on the Test Bot: https://testbot.winehq.org/JobDetails.pl?Key=63451
Observations: - Windows XP is the only one which returns an error when given an empty buffer (which is what Wine does now). - Windows XP and 2003 do not clear the buffer if the value does not fit. - All other versions produce the same output (like the Windows 10 log in the description above).