Author: khornicek
Date: Sun Apr 5 19:15:16 2009
New Revision: 40372
URL:
http://svn.reactos.org/svn/reactos?rev=40372&view=rev
Log:
- IntEnumDisplaySettings returns NTSTATUS, fix the check accordingly
Modified:
trunk/reactos/subsystems/win32/win32k/objects/device.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] Sun Apr 5
19:15:16 2009
@@ -1246,7 +1246,8 @@
RtlZeroMemory(&lpDevMode, sizeof(DEVMODEW));
lpDevMode.dmSize = sizeof(DEVMODEW);
- if (!IntEnumDisplaySettings(pDeviceName, ENUM_CURRENT_SETTINGS, &lpDevMode,
0))
+ Status = IntEnumDisplaySettings(pDeviceName, ENUM_CURRENT_SETTINGS,
&lpDevMode, 0);
+ if (!NT_SUCCESS(Status))
return DISP_CHANGE_FAILED;
DPRINT1("Req Mode : %d x %d x %d\n",
DevMode->dmPelsWidth,DevMode->dmPelsHeight,DevMode->dmBitsPerPel);