Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi

svn path=/trunk/; revision=42739
This commit is contained in:
Gregor Schneider 2009-08-16 18:52:06 +00:00
parent f5828613f7
commit 1aebf2497e

View file

@ -67,8 +67,8 @@ BltMask(SURFOBJ* psoDest,
psoPattern = &psurfPattern->SurfObj; psoPattern = &psurfPattern->SurfObj;
PatternWidth = psoPattern->sizlBitmap.cx; PatternWidth = psoPattern->sizlBitmap.cx;
PatternHeight = psoPattern->sizlBitmap.cy; PatternHeight = psoPattern->sizlBitmap.cy;
fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel;
} }
fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel;
} }
else else
psurfPattern = NULL; psurfPattern = NULL;