mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:55:55 +00:00
[FONT][WIN32SS] Refactor the loop (1 of 5)
This commit is contained in:
parent
c4e0107765
commit
5daa7b07c8
1 changed files with 5 additions and 4 deletions
|
@ -266,16 +266,17 @@ RemoveCachedEntry(PFONT_CACHE_ENTRY Entry)
|
|||
static void
|
||||
RemoveCacheEntries(FT_Face Face)
|
||||
{
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
PLIST_ENTRY CurrentEntry, NextEntry;
|
||||
PFONT_CACHE_ENTRY FontEntry;
|
||||
|
||||
ASSERT_FREETYPE_LOCK_HELD();
|
||||
|
||||
CurrentEntry = g_FontCacheListHead.Flink;
|
||||
while (CurrentEntry != &g_FontCacheListHead)
|
||||
for (CurrentEntry = g_FontCacheListHead.Flink;
|
||||
CurrentEntry != &g_FontCacheListHead;
|
||||
CurrentEntry = NextEntry)
|
||||
{
|
||||
FontEntry = CONTAINING_RECORD(CurrentEntry, FONT_CACHE_ENTRY, ListEntry);
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
NextEntry = CurrentEntry->Flink;
|
||||
|
||||
if (FontEntry->Face == Face)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue