[FONT][WIN32SS] Ignore identical mapping in IntLoadFontSubstList

This commit is contained in:
Katayama Hirofumi MZ 2018-08-17 10:46:01 +09:00 committed by Mark Jansen
parent 2ee150c374
commit bd2ab1e9bc

View file

@ -453,6 +453,15 @@ IntLoadFontSubstList(PLIST_ENTRY pHead)
CharSets[FONTSUBST_TO] = (BYTE)_wtoi(pch + 1);
}
/* is it identical? */
if (RtlEqualUnicodeString(&FromW, &ToW, TRUE) &&
CharSets[FONTSUBST_FROM] == CharSets[FONTSUBST_TO])
{
RtlFreeUnicodeString(&FromW);
RtlFreeUnicodeString(&ToW);
continue;
}
/* allocate an entry */
pEntry = ExAllocatePoolWithTag(PagedPool, sizeof(FONTSUBST_ENTRY), TAG_FONT);
if (pEntry == NULL)