From: Gregor Schneider Date: Sun, 16 Aug 2009 18:52:06 +0000 (+0000) Subject: Only set the pattern function pointer if the pattern surface is valid, spotted by... X-Git-Tag: ReactOS-0.3.11~1140 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1aebf2497ea7bb0f0c499c26d67bab0d5f4a9c08;ds=sidebyside Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi svn path=/trunk/; revision=42739 --- 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;