From 9b2a7bf67c82f2e0603fdb5b257db3a8129bb64a Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Mon, 24 Sep 2007 18:00:49 +0000 Subject: [PATCH] implmented EngQueryEMFInfo it always return FALSE it is historic in Windows XP, But not in Windows 2000 svn path=/trunk/; revision=29194 --- reactos/dll/win32/gdi32/misc/historic.c | 11 +++++++++++ reactos/dll/win32/gdi32/misc/stubs.c | 24 ------------------------ reactos/dll/win32/gdi32/objects/eng.c | 9 +++++---- 3 files changed, 16 insertions(+), 28 deletions(-) diff --git a/reactos/dll/win32/gdi32/misc/historic.c b/reactos/dll/win32/gdi32/misc/historic.c index 8dfcafedcb7..44777a53c0a 100644 --- a/reactos/dll/win32/gdi32/misc/historic.c +++ b/reactos/dll/win32/gdi32/misc/historic.c @@ -15,6 +15,17 @@ #include #include +/* + * @implemented + */ +BOOL +STDCALL +EngQueryEMFInfo(HDEV hdev, + EMFINFO *pEMFInfo) +{ + return FALSE; +} + /* * @implemented */ diff --git a/reactos/dll/win32/gdi32/misc/stubs.c b/reactos/dll/win32/gdi32/misc/stubs.c index 05c98db53a6..972820dd198 100644 --- a/reactos/dll/win32/gdi32/misc/stubs.c +++ b/reactos/dll/win32/gdi32/misc/stubs.c @@ -2296,30 +2296,6 @@ EngGetDriverName(HDEV hdev) return 0; } -/* - * @unimplemented - * wrong info it is not Obsolete GDI Function as http://www.osronline.com/DDKx/graphics/gdioview_20tj.htm say - */ -BOOL STDCALL -EngQueryEMFInfo(HDEV hdev,EMFINFO *pEMFInfo) -{ -#if 0 - BOOL retValue = FALSE; - DHPDEV Dhpdev; - - if ((!hdev) && (!pEMFInfo)) - { - if ((Dhpdev = NtGdiGetDhpdev(hdev))) - { - /* FIXME check if it support or if it is pEMFInfo we got */ - /* FIXME copy the data from Dhpdev to pEMFInfo */ - } - } - return retValue; -#else - return FALSE; -#endif -} /* diff --git a/reactos/dll/win32/gdi32/objects/eng.c b/reactos/dll/win32/gdi32/objects/eng.c index 90ed4775ad0..5d0092af121 100644 --- a/reactos/dll/win32/gdi32/objects/eng.c +++ b/reactos/dll/win32/gdi32/objects/eng.c @@ -43,10 +43,11 @@ VOID STDCALL EngDeleteSemaphore ( IN HSEMAPHORE hsem ) { - if (!hsem) return; - - RtlDeleteCriticalSection( (PRTL_CRITICAL_SECTION) hsem ); - RtlFreeHeap( GetProcessHeap(), 0, hsem ); + if (hsem) + { + RtlDeleteCriticalSection( (PRTL_CRITICAL_SECTION) hsem ); + RtlFreeHeap( GetProcessHeap(), 0, hsem ); + } } /* -- 2.17.1