Commit 9fceef33 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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

parent a3dbe3cc
...@@ -2239,7 +2239,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string ...@@ -2239,7 +2239,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
length = j; length = j;
if (format->align == StringAlignmentNear) if (!format || format->align == StringAlignmentNear)
{ {
drawbase.x = corners[0].x; drawbase.x = corners[0].x;
drawbase.y = corners[0].y; drawbase.y = corners[0].y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment