mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[FONT][WIN32SS] Refactor the loop (3 of 5)
This commit is contained in:
parent
279d179ac4
commit
d641072cb2
1 changed files with 1 additions and 3 deletions
|
@ -1991,8 +1991,7 @@ FindFaceNameInList(PUNICODE_STRING FaceName, PLIST_ENTRY Head)
|
|||
FONTGDI *FontGDI;
|
||||
NTSTATUS status;
|
||||
|
||||
Entry = Head->Flink;
|
||||
while (Entry != Head)
|
||||
for (Entry = Head->Flink; Entry != Head; Entry = Entry->Flink)
|
||||
{
|
||||
CurrentEntry = CONTAINING_RECORD(Entry, FONT_ENTRY, ListEntry);
|
||||
|
||||
|
@ -2019,7 +2018,6 @@ FindFaceNameInList(PUNICODE_STRING FaceName, PLIST_ENTRY Head)
|
|||
}
|
||||
|
||||
RtlFreeUnicodeString(&EntryFaceNameW);
|
||||
Entry = Entry->Flink;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue