mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 06:45:24 +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
1 changed files with 9 additions and 4 deletions
|
@ -69,10 +69,15 @@ static
|
|||
PREGION FASTCALL
|
||||
DceGetVisRgn(PWND Window, ULONG Flags, HWND hWndChild, ULONG CFlags)
|
||||
{
|
||||
return VIS_ComputeVisibleRegion( Window,
|
||||
0 == (Flags & DCX_WINDOW),
|
||||
0 != (Flags & DCX_CLIPCHILDREN),
|
||||
0 != (Flags & DCX_CLIPSIBLINGS));
|
||||
PREGION Rgn;
|
||||
Rgn = VIS_ComputeVisibleRegion( Window,
|
||||
0 == (Flags & DCX_WINDOW),
|
||||
0 != (Flags & DCX_CLIPCHILDREN),
|
||||
0 != (Flags & DCX_CLIPSIBLINGS));
|
||||
/* Caller expects a non-null region */
|
||||
if (!Rgn)
|
||||
Rgn = IntSysCreateRectpRgn(0, 0, 0, 0);
|
||||
return Rgn;
|
||||
}
|
||||
|
||||
PDCE FASTCALL
|
||||
|
|
Loading…
Reference in a new issue