Huw Davies : gdi: If the last param of GetKerningPairs is NULL then
return the
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 12 06:43:14 CST 2006
Module: wine
Branch: refs/heads/master
Commit: d2c60e53de48c602ac627111d8dfe543a3e49ac9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d2c60e53de48c602ac627111d8dfe543a3e49ac9
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Jan 12 11:54:20 2006 +0100
gdi: If the last param of GetKerningPairs is NULL then return the
number of pairs.
---
dlls/gdi/font.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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-cvs
mailing list