[ros-diffs] [jimtabor] 35394: Add check for null after allocating new DCE. See bug 3638.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sat Aug 16 17:48:06 CEST 2008


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/ntuser/windc.c?rev=35394&r1=35393&r2=35394&view=diff
==============================================================================
--- 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);
    }



More information about the Ros-diffs mailing list