mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
gdiplus: Don't crash when a NULL format is passed to GdipDrawString.
This commit is contained in:
parent
a3dbe3cce1
commit
9fceef33b7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user