[ros-diffs] [greatlrd] 28715: implement GetKerningPairsW (left todo implement it to win32k.sys)

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Fri Aug 31 18:59:13 CEST 2007


Author: greatlrd
Date: Fri Aug 31 20:59:12 2007
New Revision: 28715

URL: http://svn.reactos.org/svn/reactos?rev=28715&view=rev
Log:
implement GetKerningPairsW (left todo implement it to win32k.sys)

Modified:
    trunk/reactos/dll/win32/gdi32/misc/stubsw.c

Modified: trunk/reactos/dll/win32/gdi32/misc/stubsw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubsw.c?rev=28715&r1=28714&r2=28715&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubsw.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubsw.c Fri Aug 31 20:59:12 2007
@@ -34,19 +34,23 @@
 
 
 /*
- * @unimplemented
+ * @implemented
  */
 DWORD
 STDCALL
-GetKerningPairsW(
-	HDC		a0,
-	DWORD		a1,
-	LPKERNINGPAIR	a2
-	)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
+GetKerningPairsW(HDC hdc,
+                 ULONG cPairs,
+                 LPKERNINGPAIR pkpDst)
+{
+    if ((cPairs != 0) || (pkpDst == 0))
+    {
+        return NtGdiGetKerningPairs(hdc,cPairs,pkpDst);
+    }
+    else
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+        return 0;
+    }
 }
 
 




More information about the Ros-diffs mailing list