mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
[WIN32K]
- Return empty region in DceGetVisRgn if there is nothing to return. svn path=/trunk/; revision=64179
This commit is contained in:
parent
00b90311f3
commit
d87a241b25
|
@ -69,10 +69,15 @@ static
|
||||||
PREGION FASTCALL
|
PREGION FASTCALL
|
||||||
DceGetVisRgn(PWND Window, ULONG Flags, HWND hWndChild, ULONG CFlags)
|
DceGetVisRgn(PWND Window, ULONG Flags, HWND hWndChild, ULONG CFlags)
|
||||||
{
|
{
|
||||||
return VIS_ComputeVisibleRegion( Window,
|
PREGION Rgn;
|
||||||
|
Rgn = VIS_ComputeVisibleRegion( Window,
|
||||||
0 == (Flags & DCX_WINDOW),
|
0 == (Flags & DCX_WINDOW),
|
||||||
0 != (Flags & DCX_CLIPCHILDREN),
|
0 != (Flags & DCX_CLIPCHILDREN),
|
||||||
0 != (Flags & DCX_CLIPSIBLINGS));
|
0 != (Flags & DCX_CLIPSIBLINGS));
|
||||||
|
/* Caller expects a non-null region */
|
||||||
|
if (!Rgn)
|
||||||
|
Rgn = IntSysCreateRectpRgn(0, 0, 0, 0);
|
||||||
|
return Rgn;
|
||||||
}
|
}
|
||||||
|
|
||||||
PDCE FASTCALL
|
PDCE FASTCALL
|
||||||
|
|
Loading…
Reference in a new issue