implmented EngQueryEMFInfo it always return FALSE
authorMagnus Olsen <magnus@greatlord.com>
Mon, 24 Sep 2007 18:00:49 +0000 (18:00 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Mon, 24 Sep 2007 18:00:49 +0000 (18:00 +0000)
it is historic in Windows XP, But not in Windows 2000

svn path=/trunk/; revision=29194

reactos/dll/win32/gdi32/misc/historic.c
reactos/dll/win32/gdi32/misc/stubs.c
reactos/dll/win32/gdi32/objects/eng.c

index 8dfcafe..44777a5 100644 (file)
 #include <ddrawgdi.h>
 #include <ntgdi.h>
 
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+EngQueryEMFInfo(HDEV hdev,
+                EMFINFO *pEMFInfo)
+{
+    return FALSE;
+}
+
 /*
  * @implemented
  */
index 05c98db..972820d 100644 (file)
@@ -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
-}
 
 
 /*
index 90ed477..5d0092a 100644 (file)
@@ -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 );
+    }
 }
 
 /*