[WIN32SS][NTGDI] Keep FontSubstitutes enumeration CORE-15785 (#1532)

Fix CORE-15785. When LOGFONT.lfFaceName[0] == 0, then enumeration of font substitutes had failed. CORE-15785
This commit is contained in:
Katayama Hirofumi MZ 2019-04-26 21:56:36 +09:00 committed by GitHub
parent 86ae6b029f
commit ae8417fd90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2821,7 +2821,13 @@ GetFontFamilyInfoForSubstitutes(const LOGFONTW *LogFont,
GetFontFamilyInfoForList(&lf, Info, pFromW->Buffer, pCount, MaxCount,
&Win32Process->PrivateFontListHead);
IntUnLockProcessPrivateFonts(Win32Process);
break;
if (LogFont->lfFaceName[0])
{
/* it's already matched to the exact name and charset if the name
was specified at here, then so don't scan more for another name */
break;
}
}
return TRUE;