gdi.exe: Reset devmode->dmDriverExtra to avoid invalid memory accesses.

Alexandre Julliard julliard at
Mon Nov 16 04:42:48 CST 2015

Dmitry Timoshkov <dmitry at> writes:

> ChangeDisplaySettingsA/W already handle passed in DEVMODE this way.

I'm not sure I see the relationship with ChangeDisplaySettingsA, not to
mention that according to the test it doesn't do this on Win9x, which is
probably relevant here.

In any case, removing the const and writing to the app's buffer is very
suspicious and would require a convincing test case, which of course is
a bit tricky here.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list