mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[FONT][WIN32SS] Refactor the loop (5 of 5)
This commit is contained in:
parent
d641072cb2
commit
7b04962aed
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue