From 50917334e1c59680e2119a3fb9bd7afc8f5d1397 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Mon, 12 Nov 2018 14:56:37 +1100 Subject: [PATCH] Added wmvcore-WMCreateSyncReaderPriv patchset --- patches/patchinstall.sh | 19 ++++++++ ...ore-Implement-WMCreateSyncReaderPriv.patch | 43 +++++++++++++++++++ .../wmvcore-WMCreateSyncReaderPriv/definition | 1 + 3 files changed, 63 insertions(+) create mode 100644 patches/wmvcore-WMCreateSyncReaderPriv/0001-wmvcore-Implement-WMCreateSyncReaderPriv.patch create mode 100644 patches/wmvcore-WMCreateSyncReaderPriv/definition diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 443de50c..8aa3596d 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -391,6 +391,7 @@ patch_enable_all () enable_wintrust_WTHelperGetProvCertFromChain="$1" enable_wintrust_WinVerifyTrust="$1" enable_wmvcore_WMCheckURlExtension="$1" + enable_wmvcore_WMCreateSyncReaderPriv="$1" enable_wow64cpu_Wow64Transition="$1" enable_wpcap_Dynamic_Linking="$1" enable_ws2_32_APC_Performance="$1" @@ -1337,6 +1338,9 @@ patch_enable () wmvcore-WMCheckURlExtension) enable_wmvcore_WMCheckURlExtension="$2" ;; + wmvcore-WMCreateSyncReaderPriv) + enable_wmvcore_WMCreateSyncReaderPriv="$2" + ;; wow64cpu-Wow64Transition) enable_wow64cpu_Wow64Transition="$2" ;; @@ -7886,6 +7890,21 @@ if test "$enable_wmvcore_WMCheckURlExtension" -eq 1; then ) >> "$patchlist" fi +# Patchset wmvcore-WMCreateSyncReaderPriv +# | +# | This patchset fixes the following Wine bugs: +# | * [#37327] wmvcore: Implement WMCreateSyncReaderPriv +# | +# | Modified files: +# | * dlls/wmvcore/wmvcore.spec, dlls/wmvcore/wmvcore_main.c +# | +if test "$enable_wmvcore_WMCreateSyncReaderPriv" -eq 1; then + patch_apply wmvcore-WMCreateSyncReaderPriv/0001-wmvcore-Implement-WMCreateSyncReaderPriv.patch + ( + printf '%s\n' '+ { "Andrey Gusev", "wmvcore: Implement WMCreateSyncReaderPriv.", 1 },'; + ) >> "$patchlist" +fi + # Patchset wpcap-Dynamic_Linking # | # | Modified files: diff --git a/patches/wmvcore-WMCreateSyncReaderPriv/0001-wmvcore-Implement-WMCreateSyncReaderPriv.patch b/patches/wmvcore-WMCreateSyncReaderPriv/0001-wmvcore-Implement-WMCreateSyncReaderPriv.patch new file mode 100644 index 00000000..7ebebdc4 --- /dev/null +++ b/patches/wmvcore-WMCreateSyncReaderPriv/0001-wmvcore-Implement-WMCreateSyncReaderPriv.patch @@ -0,0 +1,43 @@ +From 7924a02651498da3a905ce8e41e1bc3f76f5a3d2 Mon Sep 17 00:00:00 2001 +From: Andrey Gusev +Date: Mon, 12 Nov 2018 14:54:32 +1100 +Subject: [PATCH] wmvcore: Implement WMCreateSyncReaderPriv + +Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37327 +--- + dlls/wmvcore/wmvcore.spec | 2 +- + dlls/wmvcore/wmvcore_main.c | 5 +++++ + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/dlls/wmvcore/wmvcore.spec b/dlls/wmvcore/wmvcore.spec +index 61c3c08..23d8caf 100644 +--- a/dlls/wmvcore/wmvcore.spec ++++ b/dlls/wmvcore/wmvcore.spec +@@ -1,7 +1,7 @@ + @ stdcall WMCheckURLExtension(wstr) + @ stdcall WMCheckURLScheme(wstr) + @ stub WMCreateBackupRestorerPrivate +-@ stub WMCreateSyncReaderPriv ++@ stdcall WMCreateSyncReaderPriv(ptr) + @ stub WMIsAvailableOffline + @ stub WMValidateData + @ stdcall -private DllRegisterServer() +diff --git a/dlls/wmvcore/wmvcore_main.c b/dlls/wmvcore/wmvcore_main.c +index 14014ee..0fa7b57 100644 +--- a/dlls/wmvcore/wmvcore_main.c ++++ b/dlls/wmvcore/wmvcore_main.c +@@ -2122,6 +2122,11 @@ HRESULT WINAPI WMCreateSyncReader(IUnknown *pcert, DWORD rights, IWMSyncReader * + return E_NOTIMPL; + } + ++HRESULT WINAPI WMCreateSyncReaderPriv(IWMSyncReader **syncreader) ++{ ++ return WMCreateSyncReader(NULL, 0, syncreader); ++} ++ + typedef struct { + IWMProfileManager IWMProfileManager_iface; + LONG ref; +-- +1.9.1 + diff --git a/patches/wmvcore-WMCreateSyncReaderPriv/definition b/patches/wmvcore-WMCreateSyncReaderPriv/definition new file mode 100644 index 00000000..cf7be692 --- /dev/null +++ b/patches/wmvcore-WMCreateSyncReaderPriv/definition @@ -0,0 +1 @@ +Fixes: [37327] wmvcore: Implement WMCreateSyncReaderPriv