Re: user32: EnumDisplaySettingsExA: fill in all of lpDevmode->dmDeviceName
June 5, 2008
10:22 p.m.
"Dan Kegel" <dank(a)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. -- Dmitry.
6501
Age (days ago)
6501
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov