mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
Don't return NULL regions from DceGetVisRgn.
svn path=/trunk/; revision=17945
This commit is contained in:
parent
1dc1b56c2f
commit
0bec9aee61
|
@ -63,6 +63,9 @@ DceGetVisRgn(PWINDOW_OBJECT Window, ULONG Flags, HWND hWndChild, ULONG CFlags)
|
|||
0 != (Flags & DCX_CLIPCHILDREN),
|
||||
0 != (Flags & DCX_CLIPSIBLINGS));
|
||||
|
||||
if (VisRgn == NULL)
|
||||
VisRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
||||
|
||||
return VisRgn;
|
||||
}
|
||||
|
||||
|
@ -266,10 +269,6 @@ DceUpdateVisRgn(DCE *Dce, PWINDOW_OBJECT Window, ULONG Flags)
|
|||
DcxFlags = Flags & ~(DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW);
|
||||
}
|
||||
hRgnVisible = DceGetVisRgn(Parent, DcxFlags, Window->hSelf, Flags);
|
||||
if (hRgnVisible == NULL)
|
||||
{
|
||||
hRgnVisible = NtGdiCreateRectRgn(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
else if (Window == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue