wine-staging/patches/dxdiag-new-dlls/0005-dpnhupnp-add-stub-dll.patch

140 lines
4.5 KiB
Diff
Raw Normal View History

2020-12-17 01:36:01 -08:00
From ccab4054c8596d7383904175d6efaad028268cfc Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Tue, 13 Oct 2020 04:43:44 -0500
Subject: [PATCH] dpnhupnp: add stub dll
Signed-off-by: Austin English <austinenglish@gmail.com>
---
configure.ac | 1 +
dlls/dpnhupnp/Makefile.in | 8 +++++++
dlls/dpnhupnp/dpnhupnp.spec | 5 +++++
dlls/dpnhupnp/dpnhupnp_main.c | 42 +++++++++++++++++++++++++++++++++++
dlls/dpnhupnp/version.rc | 26 ++++++++++++++++++++++
5 files changed, 82 insertions(+)
create mode 100644 dlls/dpnhupnp/Makefile.in
create mode 100644 dlls/dpnhupnp/dpnhupnp.spec
create mode 100644 dlls/dpnhupnp/dpnhupnp_main.c
create mode 100644 dlls/dpnhupnp/version.rc
diff --git a/configure.ac b/configure.ac
index c6198dd71b6..d562902f0f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3199,6 +3199,7 @@ WINE_CONFIG_MAKEFILE(dlls/dplayx)
WINE_CONFIG_MAKEFILE(dlls/dplayx/tests)
WINE_CONFIG_MAKEFILE(dlls/dpmodemx)
WINE_CONFIG_MAKEFILE(dlls/dpnaddr)
+WINE_CONFIG_MAKEFILE(dlls/dpnhupnp)
WINE_CONFIG_MAKEFILE(dlls/dpnet)
WINE_CONFIG_MAKEFILE(dlls/dpnet/tests)
WINE_CONFIG_MAKEFILE(dlls/dpnhpast)
diff --git a/dlls/dpnhupnp/Makefile.in b/dlls/dpnhupnp/Makefile.in
new file mode 100644
index 00000000000..7ac77c99471
--- /dev/null
+++ b/dlls/dpnhupnp/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = dpnhupnp.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ dpnhupnp_main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/dpnhupnp/dpnhupnp.spec b/dlls/dpnhupnp/dpnhupnp.spec
new file mode 100644
index 00000000000..acc698e99ab
--- /dev/null
+++ b/dlls/dpnhupnp/dpnhupnp.spec
@@ -0,0 +1,5 @@
+@ stub DirectPlayNATHelpCreate
+@ stub DllRegisterServer
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllUnregisterServer
\ No newline at end of file
diff --git a/dlls/dpnhupnp/dpnhupnp_main.c b/dlls/dpnhupnp/dpnhupnp_main.c
new file mode 100644
index 00000000000..f7b67d6574f
--- /dev/null
+++ b/dlls/dpnhupnp/dpnhupnp_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(dpnhupnp);
+
+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/dpnhupnp/version.rc b/dlls/dpnhupnp/version.rc
new file mode 100644
index 00000000000..21633a49815
--- /dev/null
+++ b/dlls/dpnhupnp/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 dpnhupnp"
+#define WINE_FILENAME_STR "dpnhupnp.dll"
+#define WINE_FILEVERSION 5,3,2600,5512
+#define WINE_FILEVERSION_STR "5.3.2600.5512"
+#define WINE_PRODUCTVERSION 5,3,2600,5512
+#define WINE_PRODUCTVERSION_STR "5.3.2600.5512"
+
+#include "wine/wine_common_ver.rc"
--
2.29.2