https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c4e010776594ea0a46e55…
commit c4e010776594ea0a46e55ed360c89f9b506a7b21
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Aug 19 13:36:31 2018 +0900
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Aug 19 23:07:37 2018 +0200
[FONT][WIN32SS] Refactor the loop (2 of 5)
---
win32ss/gdi/ntgdi/freetype.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 97d4b2d14c..e7a6cee516 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -1344,8 +1344,9 @@ IntGdiRemoveFontMemResource(HANDLE hMMFont)
PPROCESSINFO Win32Process = PsGetCurrentProcessWin32Process();
IntLockProcessPrivateFonts(Win32Process);
- Entry = Win32Process->PrivateMemFontListHead.Flink;
- while (Entry != &Win32Process->PrivateMemFontListHead)
+ for (Entry = Win32Process->PrivateMemFontListHead.Flink;
+ Entry != &Win32Process->PrivateMemFontListHead;
+ Entry = Entry->Flink)
{
CurrentEntry = CONTAINING_RECORD(Entry, FONT_ENTRY_COLL_MEM, ListEntry);
@@ -1355,8 +1356,6 @@ IntGdiRemoveFontMemResource(HANDLE hMMFont)
UnlinkFontMemCollection(CurrentEntry);
break;
}
-
- Entry = Entry->Flink;
}
IntUnLockProcessPrivateFonts(Win32Process);