Module: wine
Branch: master
Commit: 9ea58cbfb55950c4ee0f97018f8eefd54dafc951
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9ea58cbfb55950c4ee0f9701…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>
Date: Sat Jun 12 09:05:55 2021 +1000
dpnhupnp: Stub DirectPlayNATHelpCreate and DllGetClassObject.
Stop crash in "STAR WARS Galactic Battlegrounds Saga"
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/dpnhupnp/Makefile.in | 2 ++
dlls/dpnhupnp/dpnhupnp.spec | 4 ++--
dlls/dpnhupnp/main.c | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/dlls/dpnhupnp/Makefile.in b/dlls/dpnhupnp/Makefile.in
index 566ce038f82..6aa9ef1dd80 100644
--- a/dlls/dpnhupnp/Makefile.in
+++ b/dlls/dpnhupnp/Makefile.in
@@ -2,5 +2,7 @@ MODULE = dpnhupnp.dll
EXTRADLLFLAGS = -Wb,--prefer-native
+C_SRCS = \
+ main.c
RC_SRCS = version.rc
diff --git a/dlls/dpnhupnp/dpnhupnp.spec b/dlls/dpnhupnp/dpnhupnp.spec
index 2a750e53675..7dd3b6961a9 100644
--- a/dlls/dpnhupnp/dpnhupnp.spec
+++ b/dlls/dpnhupnp/dpnhupnp.spec
@@ -1,6 +1,6 @@
-@ stub DirectPlayNATHelpCreate
+@ stdcall DirectPlayNATHelpCreate(ptr ptr)
@ stdcall -private DllCanUnloadNow()
-@ stub DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/dpnhupnp/main.c b/dlls/dpnhupnp/main.c
new file mode 100644
index 00000000000..10bca6e7c23
--- /dev/null
+++ b/dlls/dpnhupnp/main.c
@@ -0,0 +1,39 @@
+/*
+ *
+ * Copyright (C) 2021 Alistair Leslie-Hughes
+ *
+ * This program 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 program 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 program; 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 "objbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dpnhupnp);
+
+HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, void **ppv)
+{
+ FIXME("(%p, %p) stub\n", pIID, ppv);
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
+{
+ FIXME("(%s, %s, %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+ return E_FAIL;
+}
Module: wine
Branch: master
Commit: 825ebd4e58588595b9f8bc6d0999be0f4f287a5b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=825ebd4e58588595b9f8bc6d…
Author: Austin English <austinenglish(a)gmail.com>
Date: Sat Jun 12 09:05:54 2021 +1000
dpnhupnp: Add stub dll.
Signed-off-by: Austin English <austinenglish(a)gmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/dpnhupnp/Makefile.in | 6 ++++++
dlls/dpnhupnp/dpnhupnp.spec | 6 ++++++
dlls/dpnhupnp/version.rc | 26 ++++++++++++++++++++++++++
5 files changed, 41 insertions(+)
diff --git a/configure b/configure
index 4c4ce7e6e20..c38153e53cf 100755
--- a/configure
+++ b/configure
@@ -1283,6 +1283,7 @@ enable_dplayx
enable_dpnaddr
enable_dpnet
enable_dpnhpast
+enable_dpnhupnp
enable_dpnlobby
enable_dpvoice
enable_dpwsockx
@@ -20503,6 +20504,7 @@ wine_fn_config_makefile dlls/dpnaddr enable_dpnaddr
wine_fn_config_makefile dlls/dpnet enable_dpnet
wine_fn_config_makefile dlls/dpnet/tests enable_tests
wine_fn_config_makefile dlls/dpnhpast enable_dpnhpast
+wine_fn_config_makefile dlls/dpnhupnp enable_dpnhupnp
wine_fn_config_makefile dlls/dpnlobby enable_dpnlobby
wine_fn_config_makefile dlls/dpvoice enable_dpvoice
wine_fn_config_makefile dlls/dpvoice/tests enable_tests
diff --git a/configure.ac b/configure.ac
index 8c74532dabc..94e586e07b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3174,6 +3174,7 @@ WINE_CONFIG_MAKEFILE(dlls/dpnaddr)
WINE_CONFIG_MAKEFILE(dlls/dpnet)
WINE_CONFIG_MAKEFILE(dlls/dpnet/tests)
WINE_CONFIG_MAKEFILE(dlls/dpnhpast)
+WINE_CONFIG_MAKEFILE(dlls/dpnhupnp)
WINE_CONFIG_MAKEFILE(dlls/dpnlobby)
WINE_CONFIG_MAKEFILE(dlls/dpvoice)
WINE_CONFIG_MAKEFILE(dlls/dpvoice/tests)
diff --git a/dlls/dpnhupnp/Makefile.in b/dlls/dpnhupnp/Makefile.in
new file mode 100644
index 00000000000..566ce038f82
--- /dev/null
+++ b/dlls/dpnhupnp/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = dpnhupnp.dll
+
+EXTRADLLFLAGS = -Wb,--prefer-native
+
+
+RC_SRCS = version.rc
diff --git a/dlls/dpnhupnp/dpnhupnp.spec b/dlls/dpnhupnp/dpnhupnp.spec
new file mode 100644
index 00000000000..2a750e53675
--- /dev/null
+++ b/dlls/dpnhupnp/dpnhupnp.spec
@@ -0,0 +1,6 @@
+@ stub DirectPlayNATHelpCreate
+
+@ stdcall -private DllCanUnloadNow()
+@ stub DllGetClassObject
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
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"