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