https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d641072cb2bdbb542608b988670bf2bde63233b5
commit d641072cb2bdbb542608b988670bf2bde63233b5 Author: Katayama Hirofumi MZ <[email protected]> AuthorDate: Sun Aug 19 13:37:18 2018 +0900 Commit: Mark Jansen <[email protected]> CommitDate: Sun Aug 19 23:03:13 2018 +0200 [FONT][WIN32SS] Refactor the loop (3 of 5) --- win32ss/gdi/ntgdi/freetype.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 5293c7e446..94578a4047 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -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;
