wine-staging/patches/dxdiag-new-dlls/0016-dpmodemx-Add-stub-SPInit.patch

78 lines
2.3 KiB
Diff
Raw Normal View History

2021-02-28 13:17:57 -08:00
From b3579602a731dd7398b113f397cd358554af7567 Mon Sep 17 00:00:00 2001
2020-12-26 15:02:58 -08:00
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Sun, 27 Dec 2020 09:57:46 +1100
Subject: [PATCH] dpmodemx: Add stub SPInit
---
dlls/dpmodemx/Makefile.in | 5 ++++-
dlls/dpmodemx/dpmodemx.spec | 2 +-
2021-02-28 13:17:57 -08:00
dlls/dpmodemx/dpmodemx_main.c | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 2 deletions(-)
create mode 100644 dlls/dpmodemx/dpmodemx_main.c
2020-12-26 15:02:58 -08:00
diff --git a/dlls/dpmodemx/Makefile.in b/dlls/dpmodemx/Makefile.in
index c15b7a33112..b7897fb1cf6 100644
--- a/dlls/dpmodemx/Makefile.in
+++ b/dlls/dpmodemx/Makefile.in
@@ -1,6 +1,9 @@
MODULE = dpmodemx.dll
-EXTRADLLFLAGS = -Wb,--prefer-native
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
RC_SRCS = version.rc
+
+C_SRCS = \
+ dpmodemx_main.c
2020-12-26 15:02:58 -08:00
diff --git a/dlls/dpmodemx/dpmodemx.spec b/dlls/dpmodemx/dpmodemx.spec
2021-02-28 13:17:57 -08:00
index c4c4ef212a7..2ef9c5bf45c 100644
2020-12-26 15:02:58 -08:00
--- a/dlls/dpmodemx/dpmodemx.spec
+++ b/dlls/dpmodemx/dpmodemx.spec
@@ -1 +1 @@
-@ stub SPInit
+@ stdcall SPInit(ptr)
diff --git a/dlls/dpmodemx/dpmodemx_main.c b/dlls/dpmodemx/dpmodemx_main.c
new file mode 100644
2021-02-28 13:17:57 -08:00
index 00000000000..f35e0804299
--- /dev/null
2020-12-26 15:02:58 -08:00
+++ b/dlls/dpmodemx/dpmodemx_main.c
2021-02-28 13:17:57 -08:00
@@ -0,0 +1,34 @@
+/*
+ *
+ * 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"
+
2020-12-26 15:02:58 -08:00
+#include "wine/dplaysp.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dpmodemx);
2020-12-26 15:02:58 -08:00
+
+HRESULT WINAPI SPInit( LPSPINITDATA lpspData )
+{
+ FIXME("Currently not implemented.\n");
+ return DPERR_UNAVAILABLE;
+}
--
2.20.1
2020-12-26 15:02:58 -08:00