ChangeDisplaySettingsA and ChangeDisplaySettingsW should reset dmDriverExtra to 0.
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 30 May 2009 12:23:20 +0000 (12:23 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 30 May 2009 12:23:20 +0000 (12:23 +0000)
svn path=/trunk/; revision=41204

reactos/dll/win32/user32/misc/display.c

index d03709d..2d33057 100644 (file)
@@ -493,7 +493,10 @@ ChangeDisplaySettingsA(
   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 @@ ChangeDisplaySettingsW(
   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;
 }