From 6f83c4fcb64fea314e42ab7de2d7dee29a5634dd Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 10 Mar 2008 04:02:49 +0000 Subject: [PATCH] - Cleanup GreatLordisms and half implement GdiRealizationInfo. svn path=/trunk/; revision=32637 --- reactos/dll/win32/gdi32/gdi32.rbuild | 1 + reactos/dll/win32/gdi32/misc/stubs.c | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/dll/win32/gdi32/gdi32.rbuild b/reactos/dll/win32/gdi32/gdi32.rbuild index 95c70f152d7..590fb083901 100644 --- a/reactos/dll/win32/gdi32/gdi32.rbuild +++ b/reactos/dll/win32/gdi32/gdi32.rbuild @@ -5,6 +5,7 @@ 0x0600 0x0501 + ntdll user32 kernel32 diff --git a/reactos/dll/win32/gdi32/misc/stubs.c b/reactos/dll/win32/gdi32/misc/stubs.c index 111d6081935..eb059e76298 100644 --- a/reactos/dll/win32/gdi32/misc/stubs.c +++ b/reactos/dll/win32/gdi32/misc/stubs.c @@ -1473,9 +1473,8 @@ STDCALL GdiRealizationInfo(HDC hdc, PREALIZATION_INFO pri) { - UNIMPLEMENTED; - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; + // ATM we do not support local font data and Language Pack. + return NtGdiGetRealizationInfo(hdc, pri, (HFONT) NULL); } /* @@ -1520,7 +1519,7 @@ Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData) { 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 + * ReactOS copy this behavior to be compatible with windows 2003 */ if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) &pUserData)) || (pUserData == NULL) ) @@ -1539,7 +1538,7 @@ Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData) case SETCOLORTABLE: /* Note 1: DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE is outdated and been replace with other api */ /* Note 2: Winodws check see if the handle have any user data for DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE command - * ReactOS copy this behoir to be compatible with windows 2003 + * ReactOS copy this behavior to be compatible with windows 2003 */ if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) &pUserData)) || (pUserData == NULL) ) @@ -1551,7 +1550,7 @@ Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData) case SETABORTPROC: /* Note : Winodws check see if the handle have any user data for DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE command - * ReactOS copy this behoir to be compatible with windows 2003 + * ReactOS copy this behavior to be compatible with windows 2003 */ if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) &pUserData)) || (pUserData == NULL) ) @@ -1572,7 +1571,7 @@ Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData) case ENDDOC: /* Note : Winodws check see if the handle have any user data for DRAFTMODE, FLUSHOUTPUT, SETCOLORTABLE command - * ReactOS copy this behoir to be compatible with windows 2003 + * ReactOS copy this behavior to be compatible with windows 2003 */ if ( (!GdiGetHandleUserData(hObject, (DWORD)Type, (PVOID) &pUserData)) || (pUserData == NULL) )