gdiplus: Don't crash when creating a texture with NULL imageattributes.
This commit is contained in:
parent
13762e233d
commit
69e9de1867
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue