Commit c9d2b629 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

explorer: Zero initialize DEVMODE before passing it to EnumDisplaySettings().

EnumDisplaySettings() on Wine does not write beyond the end of DEVMODE because it doesn't use dmDriverExtra currently, but this implementation detail should not be relied on. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6185252b
......@@ -889,6 +889,7 @@ static void initialize_display_settings(void)
/* Store current display mode in the registry */
ddW.cb = sizeof(ddW);
memset(&dmW, 0, sizeof(dmW));
dmW.dmSize = sizeof(dmW);
while (EnumDisplayDevicesW( NULL, i++, &ddW, 0 ))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment