Huw Davies : gdi: If the last param of GetKerningPairs is NULL then return the
Module: wine Branch: refs/heads/master Commit: d2c60e53de48c602ac627111d8dfe543a3e49ac9 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d2c60e53de48c602ac627111... Author: Huw Davies <huw(a)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;
participants (1)
-
Alexandre Julliard