mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WIN32K] Do not try to compare a long name against a truncated name.
This fixes gdiplus_winetest:font crashing. ROSTESTS-154
This commit is contained in:
parent
37a34a21a9
commit
428e4617e9
1 changed files with 2 additions and 2 deletions
|
@ -2522,8 +2522,8 @@ GetFontFamilyInfoForList(LPLOGFONTW LogFont,
|
||||||
|
|
||||||
FontFamilyFillInfo(&InfoEntry, NULL, NULL, FontGDI);
|
FontFamilyFillInfo(&InfoEntry, NULL, NULL, FontGDI);
|
||||||
|
|
||||||
if (_wcsicmp(LogFont->lfFaceName, InfoEntry.EnumLogFontEx.elfLogFont.lfFaceName) != 0 &&
|
if (_wcsnicmp(LogFont->lfFaceName, InfoEntry.EnumLogFontEx.elfLogFont.lfFaceName, RTL_NUMBER_OF(LogFont->lfFaceName)-1) != 0 &&
|
||||||
_wcsicmp(LogFont->lfFaceName, InfoEntry.EnumLogFontEx.elfFullName) != 0)
|
_wcsnicmp(LogFont->lfFaceName, InfoEntry.EnumLogFontEx.elfFullName, RTL_NUMBER_OF(LogFont->lfFaceName)-1) != 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue