mirror of
https://github.com/reactos/reactos.git
synced 2025-04-18 03:34:11 +00:00
[FONT][WIN32SS] Refactor the loop (2 of 5)
This commit is contained in:
parent
b9b4c90303
commit
c4e0107765
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue