Author: khornicek
Date: Tue Oct 25 17:08:05 2016
New Revision: 73032
URL:
http://svn.reactos.org/svn/reactos?rev=73032&view=rev
Log:
[GDI32]
- comply with MSDN and stop enumerating font families as soon as the user provided
callback returns zero
- fixes bunch of user32:sysparams tests which rely on this
Modified:
trunk/reactos/win32ss/gdi/gdi32/objects/font.c
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/gdi32/objects/…
==============================================================================
--- trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] Tue Oct 25 17:08:05 2016
@@ -278,6 +278,9 @@
(VOID*)&NewTextMetricExA,
Info[i].FontType, lParam);
}
+
+ if(Ret == 0)
+ break;
}
RtlFreeHeap(GetProcessHeap(), 0, Info);