From 887b31e11dcc714394d6cc1b2c4d90abfe5f1560 Mon Sep 17 00:00:00 2001 From: Gregor Anich Date: Tue, 13 Sep 2005 14:46:48 +0000 Subject: [PATCH] Implement QUERYESCSUPPORT escape in ExtEscape (returns FALSE always) svn path=/trunk/; revision=17832 --- reactos/subsys/win32k/objects/print.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/reactos/subsys/win32k/objects/print.c b/reactos/subsys/win32k/objects/print.c index 8f328318029..f9dc4817c16 100644 --- a/reactos/subsys/win32k/objects/print.c +++ b/reactos/subsys/win32k/objects/print.c @@ -55,17 +55,20 @@ IntGdiEscape(PDC dc, LPCSTR InData, LPVOID OutData) { + if (Escape == QUERYESCSUPPORT) + return FALSE; + UNIMPLEMENTED; - return 0; + return SP_ERROR; } INT STDCALL NtGdiEscape(HDC hDC, - INT Escape, - INT InSize, - LPCSTR InData, - LPVOID OutData) + INT Escape, + INT InSize, + LPCSTR InData, + LPVOID OutData) { PDC dc; INT ret; @@ -74,7 +77,7 @@ NtGdiEscape(HDC hDC, if (dc == NULL) { SetLastWin32Error(ERROR_INVALID_HANDLE); - return 0; + return SP_ERROR; } /* TODO FIXME - don't pass umode buffer to an Int function */ @@ -94,10 +97,10 @@ IntEngExtEscape( INT OutSize, LPVOID OutData) { - if (Escape == 0x1101) - return 0; + if (Escape == QUERYESCSUPPORT) + return FALSE; - DPRINT1("IntEngExtEscape is nimplemented. - Keep going and have a nice day\n"); + DPRINT1("IntEngExtEscape is unimplemented. - Keep going and have a nice day\n"); return -1; }