- IntEnumDisplaySettings returns NTSTATUS, fix the check accordingly
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 5 Apr 2009 15:15:16 +0000 (15:15 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 5 Apr 2009 15:15:16 +0000 (15:15 +0000)
svn path=/trunk/; revision=40372

reactos/subsystems/win32/win32k/objects/device.c

index 695446f..15ecb5f 100644 (file)
@@ -1246,7 +1246,8 @@ IntChangeDisplaySettings(
         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);