mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Don't set hClipRgn to NULL just before checking it
svn path=/trunk/; revision=6351
This commit is contained in:
parent
dc71bde604
commit
5304188395
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: windc.c,v 1.31 2003/10/09 07:30:02 gvg Exp $
|
||||
/* $Id: windc.c,v 1.32 2003/10/17 21:35:45 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -396,7 +396,6 @@ NtUserGetDCEx(HWND hWnd, HANDLE ClipRegion, ULONG Flags)
|
|||
}
|
||||
|
||||
Dce->hwndCurrent = hWnd;
|
||||
Dce->hClipRgn = NULL;
|
||||
Dce->DCXFlags = DcxFlags | (Flags & DCX_WINDOWPAINT) | DCX_DCEBUSY;
|
||||
|
||||
if (0 == (Flags & (DCX_EXCLUDERGN | DCX_INTERSECTRGN)) && NULL != ClipRegion)
|
||||
|
@ -408,6 +407,7 @@ NtUserGetDCEx(HWND hWnd, HANDLE ClipRegion, ULONG Flags)
|
|||
if (NULL != Dce->hClipRgn)
|
||||
{
|
||||
DceDeleteClipRgn(Dce);
|
||||
Dce->hClipRgn = NULL;
|
||||
}
|
||||
|
||||
if (NULL != ClipRegion)
|
||||
|
|
Loading…
Reference in a new issue