From d641072cb2bdbb542608b988670bf2bde63233b5 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Sun, 19 Aug 2018 13:37:18 +0900 Subject: [PATCH] [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 5293c7e4461..94578a40479 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;