- 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

svn path=/trunk/; revision=73032
This commit is contained in:
Kamil Hornicek 2016-10-25 17:08:05 +00:00
parent 263afc07c3
commit fe5595d60d

View file

@ -278,6 +278,9 @@ IntEnumFontFamilies(HDC Dc, LPLOGFONTW LogFont, PVOID EnumProc, LPARAM lParam,
(VOID*)&NewTextMetricExA,
Info[i].FontType, lParam);
}
if(Ret == 0)
break;
}
RtlFreeHeap(GetProcessHeap(), 0, Info);