"Dan Kegel" dank@kegel.com wrote:
'Cause if we don't, code that expects it to be defined is mildly surprised to find that bytes after the string's terminating nul are undefined. Fixes 16 Valgrind warnings of the form:
Use of uninitialised value of size 4 at mbstowcs_sbcs (mbtowc.c:78) by wine_cp_mbstowcs (mbtowc.c:266) by MultiByteToWideChar (locale.c:1846) by GdiConvertToDevmodeW (driver.c:434) by ChangeDisplaySettingsExA (sysparams.c:3011) by ChangeDisplaySettingsA (sysparams.c:2980) by test_ChangeDisplaySettingsEx (monitor.c:161) Uninitialised value was created by a stack allocation at test_ChangeDisplaySettingsEx (monitor.c:141)
GdiConvertToDevmodeW should be fixed instead.