[FONT][WIN32SS] Refactor the loop (5 of 5)

This commit is contained in:
Katayama Hirofumi MZ 2018-08-19 13:39:02 +09:00 committed by Mark Jansen
parent d641072cb2
commit 7b04962aed

View file

@ -4592,11 +4592,9 @@ FindBestFontFromList(FONTOBJ **FontObj, ULONG *MatchPenalty,
Otm = ExAllocatePoolWithTag(PagedPool, OldOtmSize, GDITAG_TEXT);
/* get the FontObj of lowest penalty */
Entry = Head->Flink;
while (Entry != Head)
for (Entry = Head->Flink; Entry != Head; Entry = Entry->Flink)
{
CurrentEntry = CONTAINING_RECORD(Entry, FONT_ENTRY, ListEntry);
Entry = Entry->Flink;
FontGDI = CurrentEntry->Font;
ASSERT(FontGDI);