From 627e0b918d178758e62e87ba4f39cd52721b938b Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 14 Dec 2006 13:22:55 +0000 Subject: [PATCH] A correct check, finally. svn path=/trunk/; revision=25161 --- reactos/subsystems/win32/win32k/objects/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/dc.c b/reactos/subsystems/win32/win32k/objects/dc.c index aea778ceb9c..0d0df02591f 100644 --- a/reactos/subsystems/win32/win32k/objects/dc.c +++ b/reactos/subsystems/win32/win32k/objects/dc.c @@ -2933,7 +2933,7 @@ IntChangeDisplaySettings( HDC hDC; hWnd = IntGetDesktopWindow(); - if (hWnd && !(Wnd = UserGetWindowObject(hWnd))) + if (!(Wnd = UserGetWindowObject(hWnd))) { return FALSE; }