gdiplus: Don't crash when a NULL format is passed to GdipDrawString.

This commit is contained in:
Vincent Povirk 2009-06-30 09:23:07 -05:00 committed by Alexandre Julliard
parent a3dbe3cce1
commit 9fceef33b7

View File

@ -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;