Don't access the pattern GetPixel function pointer if it hasn't been set
authorGregor Schneider <grschneider@gmail.com>
Tue, 11 Aug 2009 13:39:40 +0000 (13:39 +0000)
committerGregor Schneider <grschneider@gmail.com>
Tue, 11 Aug 2009 13:39:40 +0000 (13:39 +0000)
svn path=/trunk/; revision=42615

reactos/subsystems/win32/win32k/dib/stretchblt.c

index 18646c2..8608044 100644 (file)
@@ -144,7 +144,7 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, SURFOBJ *Ma
         }
       }
 
-      if (CanDraw)
+      if (UsesPattern && CanDraw)
       {
         if (PatternSurface)
         {