Author: tfaber
Date: Sat May 20 12:11:08 2017
New Revision: 74605
URL:
http://svn.reactos.org/svn/reactos?rev=74605&view=rev
Log:
[WIN32K:NTGDI]
- Simplify list walk in FindBestFontFromList
Modified:
trunk/reactos/win32ss/gdi/ntgdi/freetype.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Sat May 20 12:11:08 2017
@@ -4354,6 +4354,8 @@
while (Entry != Head)
{
CurrentEntry = CONTAINING_RECORD(Entry, FONT_ENTRY, ListEntry);
+ Entry = Entry->Flink;
+
FontGDI = CurrentEntry->Font;
ASSERT(FontGDI);
Face = FontGDI->SharedFace->Face;
@@ -4363,8 +4365,6 @@
Status = RtlAnsiStringToUnicodeString(&ActualNameW, &ActualNameA, TRUE);
if (!NT_SUCCESS(Status))
{
- /* next entry */
- Entry = Entry->Flink;
continue;
}
@@ -4391,8 +4391,6 @@
{
RtlFreeUnicodeString(&ActualNameW);
RtlFreeUnicodeString(&FullFaceNameW);
- /* next entry */
- Entry = Entry->Flink;
continue;
}
@@ -4414,9 +4412,6 @@
/* free strings */
RtlFreeUnicodeString(&ActualNameW);
-
- /* next entry */
- Entry = Entry->Flink;
}
if (Otm)