wine-staging/patches/dxdiag-new-dlls/0003-dimap-add-stub-dll.patch

136 lines
4.3 KiB
Diff
Raw Normal View History

2020-12-17 01:36:01 -08:00
From e60fe7940374842cbf933321d10c1b55161b998f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Tue, 13 Oct 2020 04:43:19 -0500
Subject: [PATCH] dimap: add stub dll
Signed-off-by: Austin English <austinenglish@gmail.com>
---
configure.ac | 1 +
dlls/dimap/Makefile.in | 8 ++++++++
dlls/dimap/dimap.spec | 2 ++
dlls/dimap/dimap_main.c | 42 +++++++++++++++++++++++++++++++++++++++++
dlls/dimap/version.rc | 26 +++++++++++++++++++++++++
5 files changed, 79 insertions(+)
create mode 100644 dlls/dimap/Makefile.in
create mode 100644 dlls/dimap/dimap.spec
create mode 100644 dlls/dimap/dimap_main.c
create mode 100644 dlls/dimap/version.rc
diff --git a/configure.ac b/configure.ac
index 12efadbab64..f2be9e7db7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3163,6 +3163,7 @@ WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc/tests)
WINE_CONFIG_MAKEFILE(dlls/dhtmled.ocx)
WINE_CONFIG_MAKEFILE(dlls/diactfrm)
WINE_CONFIG_MAKEFILE(dlls/difxapi)
+WINE_CONFIG_MAKEFILE(dlls/dimap)
WINE_CONFIG_MAKEFILE(dlls/dinput)
WINE_CONFIG_MAKEFILE(dlls/dinput/tests)
WINE_CONFIG_MAKEFILE(dlls/dinput8)
diff --git a/dlls/dimap/Makefile.in b/dlls/dimap/Makefile.in
new file mode 100644
index 00000000000..05030d9cce6
--- /dev/null
+++ b/dlls/dimap/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = dimap.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ dimap_main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/dimap/dimap.spec b/dlls/dimap/dimap.spec
new file mode 100644
index 00000000000..cacaa27a2ca
--- /dev/null
+++ b/dlls/dimap/dimap.spec
@@ -0,0 +1,2 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
diff --git a/dlls/dimap/dimap_main.c b/dlls/dimap/dimap_main.c
new file mode 100644
index 00000000000..0f393dfb243
--- /dev/null
+++ b/dlls/dimap/dimap_main.c
@@ -0,0 +1,42 @@
+/*
+ *
+ * Copyright 2020 Austin English
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dimap);
+
+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;
+}
diff --git a/dlls/dimap/version.rc b/dlls/dimap/version.rc
new file mode 100644
index 00000000000..d0341dfcb77
--- /dev/null
+++ b/dlls/dimap/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 Austin English
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine dimap"
+#define WINE_FILENAME_STR "dimap.dll"
+#define WINE_FILEVERSION 5,1,2600,881
+#define WINE_FILEVERSION_STR "5.1.2600.881"
+#define WINE_PRODUCTVERSION 5,1,2600,881
+#define WINE_PRODUCTVERSION_STR "5.1.2600.881"
+
+#include "wine/wine_common_ver.rc"
--
2.29.2