mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
81 lines
2.4 KiB
Diff
81 lines
2.4 KiB
Diff
From 6fe8944830f612188c670f2c5d5f26c8fd572ca2 Mon Sep 17 00:00:00 2001
|
|
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 +-
|
|
dlls/dpmodemx/dpmodemx_main.c | 35 +++++++++++++++++++++++++++++++++++
|
|
3 files changed, 40 insertions(+), 2 deletions(-)
|
|
create mode 100644 dlls/dpmodemx/dpmodemx_main.c
|
|
|
|
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
|
|
diff --git a/dlls/dpmodemx/dpmodemx.spec b/dlls/dpmodemx/dpmodemx.spec
|
|
index 14fb05053a8..e3beb3f8cc7 100644
|
|
--- a/dlls/dpmodemx/dpmodemx.spec
|
|
+++ b/dlls/dpmodemx/dpmodemx.spec
|
|
@@ -1 +1 @@
|
|
-@ stub SPInit
|
|
\ No newline at end of file
|
|
+@ stdcall SPInit(ptr)
|
|
\ No newline at end of file
|
|
diff --git a/dlls/dpmodemx/dpmodemx_main.c b/dlls/dpmodemx/dpmodemx_main.c
|
|
new file mode 100644
|
|
index 00000000000..d87be210165
|
|
--- /dev/null
|
|
+++ b/dlls/dpmodemx/dpmodemx_main.c
|
|
@@ -0,0 +1,35 @@
|
|
+/*
|
|
+ *
|
|
+ * 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"
|
|
+
|
|
+#include "wine/dplaysp.h"
|
|
+
|
|
+WINE_DEFAULT_DEBUG_CHANNEL(dpmodemx);
|
|
+
|
|
+HRESULT WINAPI SPInit( LPSPINITDATA lpspData )
|
|
+{
|
|
+ FIXME("Currently not implemented.\n");
|
|
+ return DPERR_UNAVAILABLE;
|
|
+}
|
|
+
|
|
--
|
|
2.20.1
|
|
|