mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
117 lines
3.8 KiB
Diff
117 lines
3.8 KiB
Diff
From 42c3691a1a3f4124a819dbde46a41eedc94bb17e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?R=C3=A9mi=20Bernon?= <rbernon@codeweavers.com>
|
|
Date: Fri, 21 Aug 2020 08:58:32 +0200
|
|
Subject: [PATCH 1/4] windows.gaming.input: Add stub dll.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: RĂ©mi Bernon <rbernon@codeweavers.com>
|
|
---
|
|
configure.ac | 1 +
|
|
dlls/windows.gaming.input.dll/Makefile.in | 7 +++
|
|
.../windows.gaming.input.spec | 3 ++
|
|
.../windows.gaming.input_main.c | 54 +++++++++++++++++++
|
|
4 files changed, 65 insertions(+)
|
|
create mode 100644 dlls/windows.gaming.input.dll/Makefile.in
|
|
create mode 100644 dlls/windows.gaming.input.dll/windows.gaming.input.spec
|
|
create mode 100644 dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 61142f73e6..82fc6817be 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -3837,6 +3837,7 @@ WINE_CONFIG_MAKEFILE(dlls/win32s16.dll16,enable_win16)
|
|
WINE_CONFIG_MAKEFILE(dlls/win87em.dll16,enable_win16)
|
|
WINE_CONFIG_MAKEFILE(dlls/winaspi.dll16,enable_win16)
|
|
WINE_CONFIG_MAKEFILE(dlls/windebug.dll16,enable_win16)
|
|
+WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input.dll)
|
|
WINE_CONFIG_MAKEFILE(dlls/windowscodecs)
|
|
WINE_CONFIG_MAKEFILE(dlls/windowscodecs/tests)
|
|
WINE_CONFIG_MAKEFILE(dlls/windowscodecsext)
|
|
diff --git a/dlls/windows.gaming.input.dll/Makefile.in b/dlls/windows.gaming.input.dll/Makefile.in
|
|
new file mode 100644
|
|
index 0000000000..782d81ad34
|
|
--- /dev/null
|
|
+++ b/dlls/windows.gaming.input.dll/Makefile.in
|
|
@@ -0,0 +1,7 @@
|
|
+MODULE = windows.gaming.input.dll
|
|
+IMPORTS = combase uuid
|
|
+
|
|
+EXTRADLLFLAGS = -mno-cygwin
|
|
+
|
|
+C_SRCS = \
|
|
+ windows.gaming.input_main.c
|
|
diff --git a/dlls/windows.gaming.input.dll/windows.gaming.input.spec b/dlls/windows.gaming.input.dll/windows.gaming.input.spec
|
|
new file mode 100644
|
|
index 0000000000..20a8bfa98e
|
|
--- /dev/null
|
|
+++ b/dlls/windows.gaming.input.dll/windows.gaming.input.spec
|
|
@@ -0,0 +1,3 @@
|
|
+@ stdcall -private DllCanUnloadNow()
|
|
+@ stdcall -private DllGetActivationFactory(ptr ptr)
|
|
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
|
diff --git a/dlls/windows.gaming.input.dll/windows.gaming.input_main.c b/dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
|
new file mode 100644
|
|
index 0000000000..3c12a83e6b
|
|
--- /dev/null
|
|
+++ b/dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
|
@@ -0,0 +1,54 @@
|
|
+#include <stdarg.h>
|
|
+
|
|
+#define COBJMACROS
|
|
+#include "windef.h"
|
|
+#include "winbase.h"
|
|
+#include "winstring.h"
|
|
+#include "wine/debug.h"
|
|
+#include "activation.h"
|
|
+#include "objbase.h"
|
|
+#include "initguid.h"
|
|
+
|
|
+WINE_DEFAULT_DEBUG_CHANNEL(input);
|
|
+
|
|
+static const char *debugstr_hstring(HSTRING hstr)
|
|
+{
|
|
+ const WCHAR *str;
|
|
+ UINT32 len;
|
|
+ if (hstr && !((ULONG_PTR)hstr >> 16)) return "(invalid)";
|
|
+ str = WindowsGetStringRawBuffer(hstr, &len);
|
|
+ return wine_dbgstr_wn(str, len);
|
|
+}
|
|
+
|
|
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
|
+{
|
|
+ TRACE("(%p, %u, %p)\n", instance, reason, reserved);
|
|
+
|
|
+ switch (reason)
|
|
+ {
|
|
+ case DLL_WINE_PREATTACH:
|
|
+ return FALSE; /* prefer native version */
|
|
+ case DLL_PROCESS_ATTACH:
|
|
+ DisableThreadLibraryCalls(instance);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ return TRUE;
|
|
+}
|
|
+
|
|
+HRESULT WINAPI DllCanUnloadNow(void)
|
|
+{
|
|
+ return S_FALSE;
|
|
+}
|
|
+
|
|
+HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *object)
|
|
+{
|
|
+ FIXME("clsid %s, riid %s, object %p stub!\n", debugstr_guid(clsid), debugstr_guid(riid), object);
|
|
+ return CLASS_E_CLASSNOTAVAILABLE;
|
|
+}
|
|
+
|
|
+HRESULT WINAPI DllGetActivationFactory(HSTRING classid, IActivationFactory **factory)
|
|
+{
|
|
+ FIXME("classid %s, factory %p stub!\n", debugstr_hstring(classid), factory);
|
|
+ return E_NOINTERFACE;
|
|
+}
|
|
--
|
|
2.28.0
|
|
|