From b9a7dffffa2b94e3a120a18f2ead72a60c0afde8 Mon Sep 17 00:00:00 2001 From: Kamil Hornicek Date: Sun, 5 Apr 2009 15:15:16 +0000 Subject: [PATCH] - IntEnumDisplaySettings returns NTSTATUS, fix the check accordingly svn path=/trunk/; revision=40372 --- reactos/subsystems/win32/win32k/objects/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/device.c b/reactos/subsystems/win32/win32k/objects/device.c index 695446fed44..15ecb5fb3d5 100644 --- a/reactos/subsystems/win32/win32k/objects/device.c +++ b/reactos/subsystems/win32/win32k/objects/device.c @@ -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); -- 2.17.1