Author: spetreolle
Date: Sat May 30 16:23:20 2009
New Revision: 41204
URL:
http://svn.reactos.org/svn/reactos?rev=41204&view=rev
Log:
ChangeDisplaySettingsA and ChangeDisplaySettingsW should reset dmDriverExtra to 0.
Modified:
trunk/reactos/dll/win32/user32/misc/display.c
Modified: trunk/reactos/dll/win32/user32/misc/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/disp…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/display.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/display.c [iso-8859-1] Sat May 30 16:23:20 2009
@@ -493,7 +493,10 @@
LPDEVMODEA lpDevMode,
DWORD dwflags)
{
- return ChangeDisplaySettingsExA ( NULL, lpDevMode, NULL, dwflags, 0 );
+ LONG Status = ChangeDisplaySettingsExA ( NULL, lpDevMode, NULL, dwflags, 0 );
+ if(lpDevMode)
+ lpDevMode->dmDriverExtra = 0;
+ return Status;
}
@@ -533,5 +536,8 @@
LPDEVMODEW lpDevMode,
DWORD dwflags)
{
- return ChangeDisplaySettingsExW ( NULL, lpDevMode, NULL, dwflags, 0 );
-}
+ LONG Status = ChangeDisplaySettingsExW ( NULL, lpDevMode, NULL, dwflags, 0 );
+ if(lpDevMode)
+ lpDevMode->dmDriverExtra = 0;
+ return Status;
+}