[ros-diffs] [jimtabor] 28342: GdiComment, example port from Wine.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Wed Aug 15 03:41:31 CEST 2007


Author: jimtabor
Date: Wed Aug 15 05:41:30 2007
New Revision: 28342

URL: http://svn.reactos.org/svn/reactos?rev=28342&view=rev
Log:
GdiComment, example port from Wine.

Modified:
    trunk/reactos/dll/win32/gdi32/misc/stubs.c

Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=28342&r1=28341&r2=28342&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Wed Aug 15 05:41:30 2007
@@ -551,14 +551,27 @@
 BOOL
 STDCALL
 GdiComment(
-	HDC		a0,
-	UINT		a1,
-	CONST BYTE	*a2
-	)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return FALSE;
+	HDC		hDC,
+	UINT		bytes,
+	CONST BYTE	*buffer
+	)
+{
+#if 0
+  if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_EMF)
+  {
+     PLDC pLDC = GdiGetLDC(hDC);
+     if ( !pLDC )
+     {
+        SetLastError(ERROR_INVALID_HANDLE);
+        return FALSE;
+     }
+     if (pLDC->iType == LDC_EMFLDC)
+     {          // Wine port
+         return EMFDRV_GdiComment( hDC, bytes, buffer );
+     }
+  }
+#endif
+  return FALSE;
 }
 
 




More information about the Ros-diffs mailing list