Alistair Leslie-Hughes : dpnhupnp: Stub DirectPlayNATHelpCreate and DllGetClassObject.

Alexandre Julliard julliard at winehq.org
Mon Jun 14 16:00:36 CDT 2021


Module: wine
Branch: master
Commit: 9ea58cbfb55950c4ee0f97018f8eefd54dafc951
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9ea58cbfb55950c4ee0f97018f8eefd54dafc951

Author: Alistair Leslie-Hughes <leslie_alistair at 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 at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
+}




More information about the wine-cvs mailing list