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/stubs…
==============================================================================
--- 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;
+ }
}