Author: hpoussin
Date: Sun Jun 4 17:09:25 2006
New Revision: 22203
URL:
http://svn.reactos.ru/svn/reactos?rev=22203&view=rev
Log:
IntEnumDisplaySettings returns a BOOL, not a NTSTATUS
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Sun Jun 4 17:09:25 2006
@@ -2862,7 +2862,7 @@
if ((dwflags & CDS_FULLSCREEN) == CDS_FULLSCREEN)
{
- DEVMODE lpDevMode;
+ DEVMODEW lpDevMode;
/* Full Screen */
dwflags &= ~CDS_FULLSCREEN;
DPRINT1("flag CDS_FULLSCREEN partially implemented");
@@ -2873,9 +2873,9 @@
lpDevMode.dmPelsHeight =0;
lpDevMode.dmDriverExtra =0;
- lpDevMode.dmSize = sizeof(DEVMODE);
- Status = IntEnumDisplaySettings(pDeviceName, ENUM_CURRENT_SETTINGS, &lpDevMode,
0);
- if (!NT_SUCCESS(Status)) return DISP_CHANGE_FAILED;
+ lpDevMode.dmSize = sizeof(DEVMODEW);
+ if (!IntEnumDisplaySettings(pDeviceName, ENUM_CURRENT_SETTINGS, &lpDevMode, 0))
+ return DISP_CHANGE_FAILED;
DPRINT1("Req Mode : %d x %d x %d\n",
DevMode->dmPelsWidth,DevMode->dmPelsHeight,DevMode->dmBitsPerPel);
DPRINT1("Current Mode : %d x %d x %d\n",
lpDevMode.dmPelsWidth,lpDevMode.dmPelsHeight, lpDevMode.dmBitsPerPel);