mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:45:41 +00:00
[FONT][WIN32SS] Ignore identical mapping in IntLoadFontSubstList
This commit is contained in:
parent
2ee150c374
commit
bd2ab1e9bc
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue