Nikolay Sivov : dcomp: Add DCompositionCreateDevice2().

Alexandre Julliard julliard at winehq.org
Fri Jan 15 15:39:44 CST 2021


Module: wine
Branch: master
Commit: c9a0006e4fda676239b1db0b322dda83cc7f141c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c9a0006e4fda676239b1db0b322dda83cc7f141c

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Jan 14 22:45:04 2021 +0300

dcomp: Add DCompositionCreateDevice2().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50357
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dcomp/Makefile.in |  1 +
 dlls/dcomp/dcomp.spec  |  2 +-
 dlls/dcomp/device.c    | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/dlls/dcomp/Makefile.in b/dlls/dcomp/Makefile.in
index 6d75a87980f..436b88993ab 100644
--- a/dlls/dcomp/Makefile.in
+++ b/dlls/dcomp/Makefile.in
@@ -3,6 +3,7 @@ MODULE    = dcomp.dll
 EXTRADLLFLAGS = -mno-cygwin
 
 C_SRCS = \
+	device.c \
 	main.c
 
 RC_SRCS = version.rc
diff --git a/dlls/dcomp/dcomp.spec b/dlls/dcomp/dcomp.spec
index 03801ebba6f..10e9f49a412 100644
--- a/dlls/dcomp/dcomp.spec
+++ b/dlls/dcomp/dcomp.spec
@@ -13,7 +13,7 @@
 @ stub CreateEffectDescription
 @ stub DCompositionAttachMouseDragToHwnd
 @ stub DCompositionAttachMouseWheelToHwnd
-@ stub DCompositionCreateDevice2
+@ stdcall DCompositionCreateDevice2(ptr ptr ptr)
 @ stub DCompositionCreateDevice3
 @ stub DCompositionCreateDevice
 @ stub DCompositionCreateSurfaceHandle
diff --git a/dlls/dcomp/device.c b/dlls/dcomp/device.c
new file mode 100644
index 00000000000..efc6bacdb08
--- /dev/null
+++ b/dlls/dcomp/device.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2020 Nikolay Sivov for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "objidl.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dcomp);
+
+HRESULT WINAPI DCompositionCreateDevice2(IUnknown *rendering_device, REFIID iid, void **device)
+{
+    FIXME("%p, %s, %p.\n", rendering_device, debugstr_guid(iid), device);
+
+    return E_NOTIMPL;
+}




More information about the wine-cvs mailing list