Module: wine Branch: master Commit: 9fceef33b7d4a0ab88a60af1e8211f83175179d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9fceef33b7d4a0ab88a60af1e8...
Author: Vincent Povirk madewokherd@gmail.com Date: Tue Jun 30 09:23:07 2009 -0500
gdiplus: Don't crash when a NULL format is passed to GdipDrawString.
---
dlls/gdiplus/graphics.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 2be64c7..3525743 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -2239,7 +2239,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
length = j;
- if (format->align == StringAlignmentNear) + if (!format || format->align == StringAlignmentNear) { drawbase.x = corners[0].x; drawbase.y = corners[0].y;