Vincent Povirk : gdiplus: Don' t crash when creating a texture with NULL imageattributes.
Alexandre Julliard
julliard at winehq.org
Mon Mar 15 12:19:30 CDT 2010
Module: wine
Branch: master
Commit: 69e9de1867d78ba54c58d028642efde1880161de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69e9de1867d78ba54c58d028642efde1880161de
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Mon Mar 8 11:28:25 2010 -0600
gdiplus: Don't crash when creating a texture with NULL imageattributes.
---
dlls/gdiplus/brush.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index abcc47f..287d9d8 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -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:
More information about the wine-cvs
mailing list