Author: greatlrd
Date: Sun Mar 9 19:27:25 2008
New Revision: 32636
URL:
http://svn.reactos.org/svn/reactos?rev=3D32636&view=3Drev
Log:
partly implement gdi32 Escape
implemented command ENDDOC: Escape
=
Modified:
trunk/reactos/dll/win32/gdi32/misc/stubs.c
trunk/reactos/dll/win32/gdi32/misc/stubsa.c
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/=
stubs.c?rev=3D32636&r1=3D32635&r2=3D32636&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Sun Mar 9 19:27:25 2008
@@ -1569,6 +1569,20 @@
retValue =3D -1; =
} =
break;
+
+ case ENDDOC:
+ /* Note : Winodws check see if the handle have any user da=
ta for DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE command =
+ * ReactOS copy this behoir to be compatible with windows =
2003 =
+ */
+ if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) =
&pUserData)) || =
+ (pUserData =3D=3D NULL) ) =
+ {
+ GdiSetLastError(ERROR_INVALID_HANDLE);
+ retValue =3D FALSE;
+ }
+ retValue =3D EndDoc(hdc);
+ break;
+
=
case GETSCALINGFACTOR:
/* Note GETSCALINGFACTOR is outdated have been replace by =
GetDeviceCaps */
Modified: trunk/reactos/dll/win32/gdi32/misc/stubsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/=
stubsa.c?rev=3D32636&r1=3D32635&r2=3D32636&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/dll/win32/gdi32/misc/stubsa.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubsa.c Sun Mar 9 19:27:25 2008
@@ -43,7 +43,7 @@
STDCALL
StartDocA(
HDC hdc,
- CONST DOCINFOA *a1
+ CONST DOCINFOA *lpdi
)
{
UNIMPLEMENTED;