Author: greatlrd
Date: Mon Sep 24 22:00:49 2007
New Revision: 29194
URL:
http://svn.reactos.org/svn/reactos?rev=29194&view=rev
Log:
implmented EngQueryEMFInfo it always return FALSE
it is historic in Windows XP, But not in Windows 2000
Modified:
trunk/reactos/dll/win32/gdi32/misc/historic.c
trunk/reactos/dll/win32/gdi32/misc/stubs.c
trunk/reactos/dll/win32/gdi32/objects/eng.c
Modified: trunk/reactos/dll/win32/gdi32/misc/historic.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/histo…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/historic.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/historic.c Mon Sep 24 22:00:49 2007
@@ -14,6 +14,17 @@
#include <ddrawint.h>
#include <ddrawgdi.h>
#include <ntgdi.h>
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+EngQueryEMFInfo(HDEV hdev,
+ EMFINFO *pEMFInfo)
+{
+ return FALSE;
+}
/*
* @implemented
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Mon Sep 24 22:00:49 2007
@@ -2296,30 +2296,6 @@
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
-}
/*
Modified: trunk/reactos/dll/win32/gdi32/objects/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/en…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/eng.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/eng.c Mon Sep 24 22:00:49 2007
@@ -43,10 +43,11 @@
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 );
+ }
}
/*