Commit 3e90d918 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdiplus: Fix a typo in the parameter validation check.

parent 73e54755
......@@ -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,
......
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