ChangeDisplaySettingsEx() can be called with NULL DeviceName. In this case, we should...
authorAleksey Bragin <aleksey@reactos.org>
Tue, 12 Dec 2006 12:18:17 +0000 (12:18 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Tue, 12 Dec 2006 12:18:17 +0000 (12:18 +0000)
commit8d383c3bad53bdd6ecfb891e17d4a2434e7e852a
tree896036d7e1f337be98450e693858885c9aed73a1
parentd7b7be782144ef31270fb4447ff35467c33bb79d
ChangeDisplaySettingsEx() can be called with NULL DeviceName. In this case, we should look it up, instead of BSODing.

Right now, this case is fixed by substituting the value to a hardcoded one "\\.\DISPLAY1" in case of NULL and call is made to store the values in registry.

svn path=/trunk/; revision=25129
reactos/subsystems/win32/win32k/objects/dc.c