gdi32: Do not compare face file names in insert_face_in_family_list() if either is NULL.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50486
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 96fdbabc72
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
dbfed2e2f6
commit
ae93bdd8fa
|
@ -913,7 +913,7 @@ static BOOL insert_face_in_family_list( struct gdi_font_face *face, struct gdi_f
|
|||
debugstr_w(face->full_name), debugstr_w(family->family_name),
|
||||
cursor->version, face->version );
|
||||
|
||||
if (face->file && !wcsicmp( face->file, cursor->file ))
|
||||
if (face->file && cursor->file && !wcsicmp( face->file, cursor->file ))
|
||||
{
|
||||
cursor->refcount++;
|
||||
TRACE("Font %s already in list, refcount now %d\n",
|
||||
|
|
Loading…
Reference in New Issue