From 87dc60c75b688d41a9a6fde5632b62343821b58c Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 31 Aug 2007 18:19:09 +0000 Subject: [PATCH] fix correct implement of GetPath svn path=/trunk/; revision=28718 --- reactos/dll/win32/gdi32/objects/path.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/reactos/dll/win32/gdi32/objects/path.c b/reactos/dll/win32/gdi32/objects/path.c index dda7616ad85..baaaa633233 100644 --- a/reactos/dll/win32/gdi32/objects/path.c +++ b/reactos/dll/win32/gdi32/objects/path.c @@ -91,16 +91,25 @@ FlattenPath( /* * @implemented */ -int +INT STDCALL -GetPath( - HDC hdc, - LPPOINT a1, - LPBYTE a2, - int a3 - ) +GetPath(HDC hdc, + LPPOINT pptlBuf, + LPBYTE pjTypes, + INT cptBuf) { - return NtGdiGetPath ( hdc, a1, a2, a3 ); + 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; }