https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b9b4c903037457ad12a85…
commit b9b4c903037457ad12a85dbec15ca3e2a54b7c9a
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Aug 19 13:38:06 2018 +0900
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Aug 19 23:05:35 2018 +0200
[FONT][WIN32SS] Refactor the loop (4 of 5)
---
win32ss/gdi/ntgdi/freetype.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 013c0bb6a4..97d4b2d14c 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -2672,8 +2672,9 @@ ftGdiGlyphCacheGet(
ASSERT_FREETYPE_LOCK_HELD();
- CurrentEntry = g_FontCacheListHead.Flink;
- while (CurrentEntry != &g_FontCacheListHead)
+ for (CurrentEntry = g_FontCacheListHead.Flink;
+ CurrentEntry != &g_FontCacheListHead;
+ CurrentEntry = CurrentEntry->Flink)
{
FontEntry = CONTAINING_RECORD(CurrentEntry, FONT_CACHE_ENTRY, ListEntry);
if ((FontEntry->Face == Face) &&
@@ -2682,7 +2683,6 @@ ftGdiGlyphCacheGet(
(FontEntry->RenderMode == RenderMode) &&
(SameScaleMatrix(&FontEntry->mxWorldToDevice, pmx)))
break;
- CurrentEntry = CurrentEntry->Flink;
}
if (CurrentEntry == &g_FontCacheListHead)