From 1aebf2497ea7bb0f0c499c26d67bab0d5f4a9c08 Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Sun, 16 Aug 2009 18:52:06 +0000 Subject: [PATCH 1/1] Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi svn path=/trunk/; revision=42739 --- reactos/subsystems/win32/win32k/eng/bitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/eng/bitblt.c b/reactos/subsystems/win32/win32k/eng/bitblt.c index be39c2059fb..3c65aaa6862 100644 --- a/reactos/subsystems/win32/win32k/eng/bitblt.c +++ b/reactos/subsystems/win32/win32k/eng/bitblt.c @@ -67,8 +67,8 @@ BltMask(SURFOBJ* psoDest, psoPattern = &psurfPattern->SurfObj; PatternWidth = psoPattern->sizlBitmap.cx; PatternHeight = psoPattern->sizlBitmap.cy; + fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel; } - fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel; } else psurfPattern = NULL; -- 2.17.1