Commit 101bcc22 authored by David Kahurani's avatar David Kahurani Committed by Alexandre Julliard

gdiplus: Allow NULL format in GdipAddPathString.

GdipAddPathString accepts NULL for format and presumably uses the default format for formating Signed-off-by: 's avatarDavid Kahurani <k.kahurani@gmail.com>
parent 29d543d1
......@@ -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;
......
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