gdiplus: don't crash when a NULL format is passed to GdipDrawString
Vincent Povirk
madewokherd+8cd9 at gmail.com
Tue Jun 30 09:25:07 CDT 2009
Fixes a regression introduced by my last patch.
Vincent Povirk
-------------- next part --------------
From b4a8d0b92fcf6ecf732c2d05c67958124d1a7dbe Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Tue, 30 Jun 2009 09:23:07 -0500
Subject: [PATCH] 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;
--
1.6.3.1
More information about the wine-patches
mailing list