Author: greatlrd
Date: Sun Mar 9 17:58:13 2008
New Revision: 32634
URL:
http://svn.reactos.org/svn/reactos?rev=3D32634&view=3Drev
Log:
partly implement gdi32 Escape
implemented command ABORTDOC Escape
=
Modified:
trunk/reactos/dll/win32/gdi32/misc/stubs.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=3D32634&r1=3D32633&r2=3D32634&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 17:58:13 2008
@@ -1505,6 +1505,7 @@
int retValue =3D -1; =
HGDIOBJ hObject =3D hdc;
UINT Type =3D 0;
+ LPVOID pUserData =3D NULL;
=
Type =3D GDI_HANDLE_GET_TYPE(hObject);
=
@@ -1518,6 +1519,22 @@
{
switch (nEscape)
{
+ case ABORTDOC: =
+ /* Note Winodws check see if the handle have any user data=
for ABORTDOC 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;
+ }
+ else
+ {
+ retValue =3D AbortDoc(hdc);
+ }
+ break;
+
case GETCOLORTABLE: =
retValue =3D GetSystemPaletteEntries(hdc, (UINT)*lpvInData=
, 1, (LPPALETTEENTRY)lpvOutData);
if ( !retValue )
@@ -1541,7 +1558,7 @@
ptr->y =3D 0; =
}
} =
- retValue =3D 0;
+ retValue =3D FALSE;
break;
=
default: