gdiplus: Fix a typo in the parameter validation check.

This commit is contained in:
Huw Davies 2008-06-27 14:04:22 +01:00 committed by Alexandre Julliard
parent 73e5475593
commit 3e90d918db
1 changed files with 1 additions and 1 deletions

View File

@ -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,