[ros-diffs] [greatlrd] 28718: fix correct implement of GetPath

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Fri Aug 31 20:19:09 CEST 2007


Author: greatlrd
Date: Fri Aug 31 22:19:09 2007
New Revision: 28718

URL: http://svn.reactos.org/svn/reactos?rev=28718&view=rev
Log:
fix correct implement of GetPath

Modified:
    trunk/reactos/dll/win32/gdi32/objects/path.c

Modified: trunk/reactos/dll/win32/gdi32/objects/path.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/path.c?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/path.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/path.c Fri Aug 31 22:19:09 2007
@@ -91,16 +91,25 @@
 /*
  * @implemented
  */
-int
-STDCALL
-GetPath(
-	HDC		hdc,
-	LPPOINT		a1,
-	LPBYTE		a2,
-	int		a3
-	)
-{
-	return NtGdiGetPath ( hdc, a1, a2, a3 );
+INT
+STDCALL
+GetPath(HDC hdc,
+        LPPOINT pptlBuf,
+        LPBYTE pjTypes,
+        INT cptBuf)
+{
+    INT retValue = -1;
+
+    if (GDI_HANDLE_GET_TYPE(hdc) != GDI_OBJECT_TYPE_METADC)
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+    }
+    else
+    {
+        retValue = NtGdiGetPath(hdc,pptlBuf,pjTypes,cptBuf);
+    }
+
+    return retValue;
 }
 
 




More information about the Ros-diffs mailing list