From 3d7ac2bee61b154dedad92cc192cd06d1a71c21c Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 20 Mar 2016 08:47:43 +0100 Subject: [PATCH] Added patch to fake success in dwmapi.DwmSetWindowAttribute function. --- ...OK-from-DwmSetWindowAttribute-functi.patch | 25 +++++++++++++++++++ .../dwmapi-DwmSetWindowAttribute/definition | 1 + patches/patchinstall.sh | 16 ++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 patches/dwmapi-DwmSetWindowAttribute/0001-dwmapi-Return-S_OK-from-DwmSetWindowAttribute-functi.patch create mode 100644 patches/dwmapi-DwmSetWindowAttribute/definition diff --git a/patches/dwmapi-DwmSetWindowAttribute/0001-dwmapi-Return-S_OK-from-DwmSetWindowAttribute-functi.patch b/patches/dwmapi-DwmSetWindowAttribute/0001-dwmapi-Return-S_OK-from-DwmSetWindowAttribute-functi.patch new file mode 100644 index 00000000..dd0a99cf --- /dev/null +++ b/patches/dwmapi-DwmSetWindowAttribute/0001-dwmapi-Return-S_OK-from-DwmSetWindowAttribute-functi.patch @@ -0,0 +1,25 @@ +From 12fa52d23ad77d08100444fd04b9deaf06b5ac63 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Fri, 18 Mar 2016 04:25:59 +0100 +Subject: dwmapi: Return S_OK from DwmSetWindowAttribute function. + +--- + dlls/dwmapi/dwmapi_main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c +index a776cfe..7ae2dcf 100644 +--- a/dlls/dwmapi/dwmapi_main.c ++++ b/dlls/dwmapi/dwmapi_main.c +@@ -126,7 +126,7 @@ HRESULT WINAPI DwmSetWindowAttribute(HWND hwnd, DWORD attributenum, LPCVOID attr + + if (!once++) FIXME("(%p, %x, %p, %x) stub\n", hwnd, attributenum, attribute, size); + +- return E_NOTIMPL; ++ return S_OK; + } + + /********************************************************************** +-- +2.7.1 + diff --git a/patches/dwmapi-DwmSetWindowAttribute/definition b/patches/dwmapi-DwmSetWindowAttribute/definition new file mode 100644 index 00000000..cad9a061 --- /dev/null +++ b/patches/dwmapi-DwmSetWindowAttribute/definition @@ -0,0 +1 @@ +Fixes: Fake success in dwmapi.DwmSetWindowAttribute function diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 19caf2e6..8726c163 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -138,6 +138,7 @@ patch_enable_all () enable_dsound_EAX="$1" enable_dsound_Fast_Mixer="$1" enable_dsound_Revert_Cleanup="$1" + enable_dwmapi_DwmSetWindowAttribute="$1" enable_dxdiagn_Display_Information="$1" enable_dxdiagn_Enumerate_DirectSound="$1" enable_dxdiagn_GetChildContainer_Leaf_Nodes="$1" @@ -580,6 +581,9 @@ patch_enable () dsound-Revert_Cleanup) enable_dsound_Revert_Cleanup="$2" ;; + dwmapi-DwmSetWindowAttribute) + enable_dwmapi_DwmSetWindowAttribute="$2" + ;; dxdiagn-Display_Information) enable_dxdiagn_Display_Information="$2" ;; @@ -3474,6 +3478,18 @@ if test "$enable_dsound_EAX" -eq 1; then ) >> "$patchlist" fi +# Patchset dwmapi-DwmSetWindowAttribute +# | +# | Modified files: +# | * dlls/dwmapi/dwmapi_main.c +# | +if test "$enable_dwmapi_DwmSetWindowAttribute" -eq 1; then + patch_apply dwmapi-DwmSetWindowAttribute/0001-dwmapi-Return-S_OK-from-DwmSetWindowAttribute-functi.patch + ( + echo '+ { "Michael Müller", "dwmapi: Return S_OK from DwmSetWindowAttribute function.", 1 },'; + ) >> "$patchlist" +fi + # Patchset dxdiagn-Display_Information # | # | This patchset fixes the following Wine bugs: