diff --git a/patches/dxdiag-new-dlls/0016-dpmodemx-Add-stub-SPInit.patch b/patches/dxdiag-new-dlls/0016-dpmodemx-Add-stub-SPInit.patch new file mode 100644 index 00000000..dd03083b --- /dev/null +++ b/patches/dxdiag-new-dlls/0016-dpmodemx-Add-stub-SPInit.patch @@ -0,0 +1,45 @@ +From a615211907b65642807cdad546a0eaf12e39f43c Mon Sep 17 00:00:00 2001 +From: Alistair Leslie-Hughes +Date: Sun, 27 Dec 2020 09:57:46 +1100 +Subject: [PATCH] dpmodemx: Add stub SPInit + +--- + dlls/dpmodemx/dpmodemx.spec | 2 +- + dlls/dpmodemx/dpmodemx_main.c | 8 ++++++++ + 2 files changed, 9 insertions(+), 1 deletion(-) + +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 +index f5d7a8340ca..5d322783b40 100644 +--- a/dlls/dpmodemx/dpmodemx_main.c ++++ b/dlls/dpmodemx/dpmodemx_main.c +@@ -23,6 +23,8 @@ + #include "winbase.h" + #include "wine/debug.h" + ++#include "wine/dplaysp.h" ++ + WINE_DEFAULT_DEBUG_CHANNEL(dpmodemx); + + BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +@@ -40,3 +42,9 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) + + return TRUE; + } ++ ++HRESULT WINAPI SPInit( LPSPINITDATA lpspData ) ++{ ++ FIXME("Currently not implemented.\n"); ++ return DPERR_UNAVAILABLE; ++} +-- +2.29.2 + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 5551ae4d..b078c8a2 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -2441,6 +2441,7 @@ if test "$enable_dxdiag_new_dlls" -eq 1; then patch_apply dxdiag-new-dlls/0013-gcdef-add-stub-dll.patch patch_apply dxdiag-new-dlls/0014-qdv-add-stub-dll.patch patch_apply dxdiag-new-dlls/0015-qedwipes-add-stub-dll.patch + patch_apply dxdiag-new-dlls/0016-dpmodemx-Add-stub-SPInit.patch fi # Patchset ntdll-DOS_Attributes