Dmitry Timoshkov dmitry@baikal.ru 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.