mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
Add check for null after allocating new DCE. See bug 3638.
svn path=/trunk/; revision=35394
This commit is contained in:
parent
1b11b8d6ce
commit
bafb77d60c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue