mirror of
https://github.com/reactos/reactos.git
synced 2024-07-16 17:36:12 +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_CLIPCHILDREN),
|
||||||
0 != (Flags & DCX_CLIPSIBLINGS));
|
0 != (Flags & DCX_CLIPSIBLINGS));
|
||||||
|
|
||||||
|
if (VisRgn == NULL)
|
||||||
|
VisRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
||||||
|
|
||||||
return VisRgn;
|
return VisRgn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,10 +269,6 @@ DceUpdateVisRgn(DCE *Dce, PWINDOW_OBJECT Window, ULONG Flags)
|
||||||
DcxFlags = Flags & ~(DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW);
|
DcxFlags = Flags & ~(DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW);
|
||||||
}
|
}
|
||||||
hRgnVisible = DceGetVisRgn(Parent, DcxFlags, Window->hSelf, Flags);
|
hRgnVisible = DceGetVisRgn(Parent, DcxFlags, Window->hSelf, Flags);
|
||||||
if (hRgnVisible == NULL)
|
|
||||||
{
|
|
||||||
hRgnVisible = NtGdiCreateRectRgn(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (Window == NULL)
|
else if (Window == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue