wine-staging/patches/dxdiag-new-dlls/0010-dxapi.sys-add-stub-dll.patch

110 lines
3.5 KiB
Diff

From c4e663329366c37bca65a0beb83d656afea45ecc Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Tue, 13 Oct 2020 04:42:03 -0500
Subject: [PATCH] dxapi.sys: add stub dll
Signed-off-by: Austin English <austinenglish@gmail.com>
---
configure.ac | 1 +
dlls/dxapi.sys/Makefile.in | 6 ++++++
dlls/dxapi.sys/dxapi.sys.spec | 7 +++++++
dlls/dxapi.sys/version.rc | 26 ++++++++++++++++++++++++++
loader/wine.inf.in | 2 ++
5 files changed, 42 insertions(+)
create mode 100644 dlls/dxapi.sys/Makefile.in
create mode 100644 dlls/dxapi.sys/dxapi.sys.spec
create mode 100644 dlls/dxapi.sys/version.rc
diff --git a/configure.ac b/configure.ac
index da6ada3013b..47e8427f6b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3248,6 +3248,7 @@ WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests)
WINE_CONFIG_MAKEFILE(dlls/dwrite)
WINE_CONFIG_MAKEFILE(dlls/dwrite/tests)
WINE_CONFIG_MAKEFILE(dlls/dx8vb)
+WINE_CONFIG_MAKEFILE(dlls/dxapi.sys)
WINE_CONFIG_MAKEFILE(dlls/dxdiagn)
WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests)
WINE_CONFIG_MAKEFILE(dlls/dxerr8)
diff --git a/dlls/dxapi.sys/Makefile.in b/dlls/dxapi.sys/Makefile.in
new file mode 100644
index 00000000000..43259f950b5
--- /dev/null
+++ b/dlls/dxapi.sys/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = dxapi.sys
+
+EXTRADLLFLAGS = -Wb,--prefer-native
+
+
+RC_SRCS = version.rc
diff --git a/dlls/dxapi.sys/dxapi.sys.spec b/dlls/dxapi.sys/dxapi.sys.spec
new file mode 100644
index 00000000000..05748b5fe59
--- /dev/null
+++ b/dlls/dxapi.sys/dxapi.sys.spec
@@ -0,0 +1,7 @@
+@ stub _DxApi@20
+@ stub _DxApiGetVersion@0
+@ stub _DxApiInitialize@32
+@ stub _DxAutoflipUpdate@20
+@ stub _DxEnableIRQ@8
+@ stub _DxLoseObject@8
+@ stub _DxUpdateCapture@12
diff --git a/dlls/dxapi.sys/version.rc b/dlls/dxapi.sys/version.rc
new file mode 100644
index 00000000000..7ecd1565052
--- /dev/null
+++ b/dlls/dxapi.sys/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 dxapi.sys"
+#define WINE_FILENAME_STR "dxapi.sys"
+#define WINE_FILEVERSION 5,0,2180,1
+#define WINE_FILEVERSION_STR "5.0.2180.1"
+#define WINE_PRODUCTVERSION 5,0,2180,1
+#define WINE_PRODUCTVERSION_STR "5.0.2180.1"
+
+#include "wine/wine_common_ver.rc"
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index 20d5243aa4b..b4052b146b4 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -2632,6 +2632,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
10,syswow64,stdole2.tlb
11,,iexplore.exe
11,,winetest.exe,-
+12,,dxapi.sys,-
12,,dxgkrnl.sys,-
12,,dxgmms1.sys,-
12,,fltmgr.sys,-
@@ -2689,6 +2690,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,iexplore.exe
11,,notepad.exe
11,,winetest.exe,-
+12,,dxapi.sys,-
12,,dxgkrnl.sys
12,,dxgmms1.sys
12,,fltmgr.sys
--
2.20.1