gdiplus: Allow NULL format in GdipAddPathString.

GdipAddPathString accepts NULL for format and presumably uses
the default format for formating

Signed-off-by: David Kahurani <k.kahurani@gmail.com>
This commit is contained in:
David Kahurani 2023-06-18 14:41:45 +03:00 committed by Alexandre Julliard
parent 29d543d12a
commit 101bcc221d

View file

@ -1010,9 +1010,12 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT
TEXTMETRICW textmetric;
TRACE("(%p, %s, %d, %p, %d, %f, %p, %p)\n", path, debugstr_w(string), length, family, style, emSize, layoutRect, format);
if (!path || !string || !family || !emSize || !layoutRect || !format)
if (!path || !string || !family || !emSize || !layoutRect)
return InvalidParameter;
if (!format)
format = &default_drawstring_format;
status = GdipGetEmHeight(family, style, &native_height);
if (status != Ok)
return status;