Add check for null after allocating new DCE. See bug 3638.

svn path=/trunk/; revision=35394
This commit is contained in:
James Tabor 2008-08-16 15:48:05 +00:00
parent 1b11b8d6ce
commit bafb77d60c

View file

@ -467,6 +467,7 @@ UserGetDCEx(PWINDOW_OBJECT Window OPTIONAL, HANDLE ClipRegion, ULONG Flags)
{
Dce = DceAllocDCE(NULL, DCE_CACHE_DC);
}
if (!Dce) return NULL;
Dce->hwndCurrent = (Window ? Window->hSelf : NULL);
}