Added patch to fake success in dwmapi.DwmSetWindowAttribute function.

This commit is contained in:
Sebastian Lackner 2016-03-20 08:47:43 +01:00
parent 5d2841f36e
commit 3d7ac2bee6
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 12fa52d23ad77d08100444fd04b9deaf06b5ac63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
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

View File

@ -0,0 +1 @@
Fixes: Fake success in dwmapi.DwmSetWindowAttribute function

View File

@ -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: