gdiplus: Fix a typo in the parameter validation check.
This commit is contained in:
parent
73e5475593
commit
3e90d918db
|
@ -97,7 +97,7 @@ GpStatus WINGDIPAPI GdipCreateFont(GDIPCONST GpFontFamily *fontFamily,
|
|||
const TEXTMETRICW* tmw;
|
||||
GpStatus stat;
|
||||
|
||||
if ((!fontFamily && fontFamily->FamilyName && font))
|
||||
if (!fontFamily || !fontFamily->FamilyName || !font)
|
||||
return InvalidParameter;
|
||||
|
||||
TRACE("%p (%s), %f, %d, %d, %p\n", fontFamily,
|
||||
|
|
Loading…
Reference in New Issue