gdiplus: Don't crash when creating a texture with NULL imageattributes.

This commit is contained in:
Vincent Povirk 2010-03-08 11:28:25 -06:00 committed by Alexandre Julliard
parent 13762e233d
commit 69e9de1867
1 changed files with 4 additions and 1 deletions

View File

@ -838,7 +838,10 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
(*texture)->brush.gdibrush = CreateBrushIndirect(&(*texture)->brush.lb);
(*texture)->brush.bt = BrushTypeTextureFill;
(*texture)->wrap = imageattr->wrap;
if (imageattr)
(*texture)->wrap = imageattr->wrap;
else
(*texture)->wrap = WrapModeTile;
(*texture)->image = new_image;
exit: