This seems very strange

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: 30 May 2009 13:23
To: [email protected]
Subject: [ros-diffs] [spetreolle] 41204: ChangeDisplaySettingsA and 
ChangeDisplaySettingsW should reset dmDriverExtra to 0.

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/display.c?rev=41204&r1=41203&r2=41204&view=diff
==============================================================================
--- 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;
+}


_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to