mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
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:
parent
29d543d12a
commit
101bcc221d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue