Author: tfaber
Date: Thu Oct 22 10:46:02 2015
New Revision: 69640
URL:
http://svn.reactos.org/svn/reactos?rev=69640&view=rev
Log:
[WIN32K:ENG]
- Remove useless NULL checks in BltMask and IntEngStretchBlt. CID 1322184, 701344
Modified:
trunk/reactos/win32ss/gdi/eng/bitblt.c
trunk/reactos/win32ss/gdi/eng/stretchblt.c
Modified: trunk/reactos/win32ss/gdi/eng/bitblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/bitblt.c?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/bitblt.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/bitblt.c [iso-8859-1] Thu Oct 22 10:46:02 2015
@@ -66,8 +66,6 @@
ASSERT(IS_VALID_ROP4(Rop4));
ASSERT(psoMask->iBitmapFormat == BMF_1BPP);
-
- if (!psoMask) return FALSE;
fgndRop = ROP4_FGND(Rop4);
bkgndRop = ROP4_BKGND(Rop4);
Modified: trunk/reactos/win32ss/gdi/eng/stretchblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/stretchblt…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/stretchblt.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/stretchblt.c [iso-8859-1] Thu Oct 22 10:46:02 2015
@@ -386,7 +386,7 @@
ASSERT(psoDest);
//ASSERT(psoSource); // FIXME!
ASSERT(DestRect);
- //ASSERT(SourceRect); // FIXME!
+ ASSERT(SourceRect);
//ASSERT(!RECTL_bIsEmptyRect(SourceRect)); // FIXME!
/* If no clip object is given, use trivial one */
@@ -427,7 +427,7 @@
InputClippedRect.bottom = DestRect->top;
}
- if (NULL == SourceRect || NULL == psoSource)
+ if (NULL == psoSource)
{
return FALSE;
}