gdi: If the last param of GetKerningPairs is NULL then return the

number of pairs.
This commit is contained in:
Huw Davies 2006-01-12 11:54:20 +01:00 committed by Alexandre Julliard
parent d11069f8bb
commit d2c60e53de
1 changed files with 4 additions and 0 deletions

View File

@ -2467,6 +2467,10 @@ DWORD WINAPI GetKerningPairsW( HDC hDC, DWORD cPairs,
{
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;