Commit d2c60e53 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

number of pairs.
parent d11069f8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment