mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:22:58 +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
1 changed files with 1 additions and 0 deletions
|
@ -467,6 +467,7 @@ UserGetDCEx(PWINDOW_OBJECT Window OPTIONAL, HANDLE ClipRegion, ULONG Flags)
|
||||||
{
|
{
|
||||||
Dce = DceAllocDCE(NULL, DCE_CACHE_DC);
|
Dce = DceAllocDCE(NULL, DCE_CACHE_DC);
|
||||||
}
|
}
|
||||||
|
if (!Dce) return NULL;
|
||||||
|
|
||||||
Dce->hwndCurrent = (Window ? Window->hSelf : NULL);
|
Dce->hwndCurrent = (Window ? Window->hSelf : NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue