This seems very strange
-----Original Message-----
From: ros-diffs-bounces(a)reactos.org [mailto:ros-diffs-bounces@reactos.org] On Behalf Of
spetreolle(a)svn.reactos.org
Sent: 30 May 2009 13:23
To: ros-diffs(a)reactos.org
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/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;
+}