mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 23:30:07 +08:00
[FONT][WIN32SS] Refactor the loop (5 of 5)
This commit is contained in:
committed by
Mark Jansen
parent
d641072cb2
commit
7b04962aed
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user