Author: jimtabor
Date: Sun May 31 21:33:27 2009
New Revision: 41227
URL:
http://svn.reactos.org/svn/reactos?rev=41227&view=rev
Log:
- dmDriverExtra is zeroed before the call to ChangeDisplaySettingsEx.
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] Sun May 31 21:33:27 2009
@@ -493,10 +493,9 @@
LPDEVMODEA lpDevMode,
DWORD dwflags)
{
- LONG Status = ChangeDisplaySettingsExA ( NULL, lpDevMode, NULL, dwflags, 0 );
if(lpDevMode)
lpDevMode->dmDriverExtra = 0;
- return Status;
+ return ChangeDisplaySettingsExA ( NULL, lpDevMode, NULL, dwflags, 0 );
}
@@ -536,8 +535,7 @@
LPDEVMODEW lpDevMode,
DWORD dwflags)
{
- LONG Status = ChangeDisplaySettingsExW ( NULL, lpDevMode, NULL, dwflags, 0 );
if(lpDevMode)
lpDevMode->dmDriverExtra = 0;
- return Status;
-}
+ return ChangeDisplaySettingsExW ( NULL, lpDevMode, NULL, dwflags, 0 );
+}