commit | 9fceef33b7d4a0ab88a60af1e8211f83175179d3 | [log] [tgz] |
---|---|---|
author | Vincent Povirk <madewokherd@gmail.com> | Tue Jun 30 09:23:07 2009 -0500 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Jul 01 11:38:11 2009 +0200 |
tree | ff86302fdc18b4bf0af4c071fab35cfff7220d6d | |
parent | a3dbe3cce1e45b66d98531434b5ce8c2df6dd4e6 [diff] [blame] |
gdiplus: Don't crash when a NULL format is passed to GdipDrawString.
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 @@ length = j; - if (format->align == StringAlignmentNear) + if (!format || format->align == StringAlignmentNear) { drawbase.x = corners[0].x; drawbase.y = corners[0].y;