Author: jimtabor Date: Sat Aug 16 10:48:05 2008 New Revision: 35394
URL: http://svn.reactos.org/svn/reactos?rev=35394&view=rev Log: Add check for null after allocating new DCE. See bug 3638.
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] Sat Aug 16 10:48:05 2008 @@ -467,6 +467,7 @@ { Dce = DceAllocDCE(NULL, DCE_CACHE_DC); } + if (!Dce) return NULL;
Dce->hwndCurrent = (Window ? Window->hSelf : NULL); }