Module: wine
Branch: master
Commit: a0f86f4410e7524a98779389d73fbc1472226bb8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a0f86f4410e7524a98779389…
Author: Alex Henrie <alexhenrie24(a)gmail.com>
Date: Sun Oct 24 19:20:47 2021 -0600
dxtrans: Add DllGetClassObject stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51917
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/dxtrans/Makefile.in | 3 +++
dlls/dxtrans/dxtrans.spec | 2 +-
dlls/dxtrans/main.c | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/dlls/dxtrans/Makefile.in b/dlls/dxtrans/Makefile.in
index b5c1602917f..cf669277b93 100644
--- a/dlls/dxtrans/Makefile.in
+++ b/dlls/dxtrans/Makefile.in
@@ -1 +1,4 @@
MODULE = dxtrans.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/dxtrans/dxtrans.spec b/dlls/dxtrans/dxtrans.spec
index 7c2d605e534..b8ff0297a1b 100644
--- a/dlls/dxtrans/dxtrans.spec
+++ b/dlls/dxtrans/dxtrans.spec
@@ -6,6 +6,6 @@
@ stub ?DXOverArrayMMX@@YGXPAVDXPMSAMPLE@@PBV1@K@Z
@ stdcall -private DllCanUnloadNow()
@ stub DllEnumClassObjects
-@ stub DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/dxtrans/main.c b/dlls/dxtrans/main.c
new file mode 100644
index 00000000000..2b87e9f69c4
--- /dev/null
+++ b/dlls/dxtrans/main.c
@@ -0,0 +1,35 @@
+/*
+ * DirectX Transitions
+ *
+ * Copyright 2021 Alex Henrie
+ *
+ * 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>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dxtrans);
+
+HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, void **out)
+{
+ FIXME("(%s, %s, %p) stub!\n", debugstr_guid(clsid), debugstr_guid(riid), out);
+ return CLASS_E_CLASSNOTAVAILABLE;
+}