From 4732a3af3de1a03808cac55650f3ab4edb610807 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Wed, 23 Mar 2011 17:11:40 +0000 Subject: [PATCH] [WIN32K] Remove a useless if in cliprgn.c Patch by Thomas Faber See issue #6015 for more details. svn path=/trunk/; revision=51129 --- reactos/subsystems/win32/win32k/objects/cliprgn.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/cliprgn.c b/reactos/subsystems/win32/win32k/objects/cliprgn.c index 95e0e5cced9..7294f2b31fd 100644 --- a/reactos/subsystems/win32/win32k/objects/cliprgn.c +++ b/reactos/subsystems/win32/win32k/objects/cliprgn.c @@ -26,20 +26,13 @@ int FASTCALL CLIPPING_UpdateGCRegion(DC* Dc) { PROSRGNDATA CombinedRegion; - HRGN hRgnVis = Dc->prgnVis->BaseObject.hHmgr; + HRGN hRgnVis; // would prefer this, but the rest of the code sucks // ASSERT(Dc->rosdc.hGCClipRgn); // ASSERT(Dc->rosdc.hClipRgn); - if (!Dc->prgnVis) - { - DPRINT1("Warning, prgnVis is NULL!\n"); - } - else - { - hRgnVis = Dc->prgnVis->BaseObject.hHmgr ; - } - + ASSERT(Dc->prgnVis); + hRgnVis = Dc->prgnVis->BaseObject.hHmgr; if (Dc->rosdc.hGCClipRgn == NULL) Dc->rosdc.hGCClipRgn = IntSysCreateRectRgn(0, 0, 0, 0); -- 2.17.1