Author: janderwald
Date: Tue Dec 12 23:22:07 2006
New Revision: 25135
URL:
http://svn.reactos.org/svn/reactos?rev=25135&view=rev
Log:
- fix bug in IntChangeDisplaySettings
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Tue Dec 12 23:22:07 2006
@@ -2933,7 +2933,7 @@
HDC hDC;
hWnd = IntGetDesktopWindow();
- if (hWnd && !(Wnd = UserGetWindowObject(hWnd)))
+ if (!hWnd || !(Wnd = UserGetWindowObject(hWnd)))
{
return FALSE;
}