gdi: GetKerningPairs
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Wed Jan 11 16:57:07 CST 2006
Huw Davies <huw at codeweavers.com>
If the last param of GetKerningPairs is NULL then return the
number of pairs
diff --git a/dlls/gdi/font.c b/dlls/gdi/font.c
index f94bda1..e6a00a3 100644
--- a/dlls/gdi/font.c
+++ b/dlls/gdi/font.c
@@ -2467,6 +2467,10 @@ DWORD WINAPI GetKerningPairsW( HDC hDC,
{
unsigned int i;
FIXME("(%p,%ld,%p): almost empty stub!\n", hDC, cPairs, lpKerningPairs);
+
+ if(!lpKerningPairs) /* return the number of kerning pairs */
+ return 0;
+
for (i = 0; i < cPairs; i++)
lpKerningPairs[i].iKernAmount = 0;
return 0;
More information about the wine-patches
mailing list