Alex Henrie : user32: Add stub for SetWindowCompositionAttribute.

Alexandre Julliard julliard at winehq.org
Mon Oct 8 15:44:06 CDT 2018


Module: wine
Branch: master
Commit: 67a33fce6f35f61d763880f42db71a75b511eb0b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=67a33fce6f35f61d763880f42db71a75b511eb0b

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Mon Oct  8 00:36:21 2018 -0600

user32: Add stub for SetWindowCompositionAttribute.

Based on a patch by Louis Lenders.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44787
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 .../ext-ms-win-ntuser-private-l1-1-1.spec                      |  2 +-
 dlls/user32/user32.spec                                        |  1 +
 dlls/user32/win.c                                              | 10 ++++++++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/dlls/ext-ms-win-ntuser-private-l1-1-1/ext-ms-win-ntuser-private-l1-1-1.spec b/dlls/ext-ms-win-ntuser-private-l1-1-1/ext-ms-win-ntuser-private-l1-1-1.spec
index 958837b..d75425c 100644
--- a/dlls/ext-ms-win-ntuser-private-l1-1-1/ext-ms-win-ntuser-private-l1-1-1.spec
+++ b/dlls/ext-ms-win-ntuser-private-l1-1-1/ext-ms-win-ntuser-private-l1-1-1.spec
@@ -15,7 +15,7 @@
 @ stub RecordShutdownReason
 @ stdcall RegisterLogonProcess(long long) user32.RegisterLogonProcess
 @ stub SetThreadInputBlocked
-@ stub SetWindowCompositionAttribute
+@ stdcall SetWindowCompositionAttribute(ptr ptr) user32.SetWindowCompositionAttribute
 @ stdcall SetWindowStationUser(long long) user32.SetWindowStationUser
 @ stub SwitchDesktopWithFade
 @ stub UnlockWindowStation
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index 61e0e4e..a340e02 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -711,6 +711,7 @@
 @ stdcall SetUserObjectInformationW(long long ptr long)
 @ stdcall SetUserObjectSecurity(long ptr ptr)
 @ stdcall SetWinEventHook(long long long ptr long long long)
+@ stdcall SetWindowCompositionAttribute(ptr ptr)
 @ stdcall SetWindowContextHelpId(long long)
 @ stdcall SetWindowDisplayAffinity(long long)
 @ stub SetWindowFullScreenState
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 2a55ab4..95f5ac7 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -4183,3 +4183,13 @@ BOOL WINAPI SetWindowDisplayAffinity(HWND hwnd, DWORD affinity)
     SetLastError(ERROR_NOT_ENOUGH_MEMORY);
     return FALSE;
 }
+
+/**********************************************************************
+ *              SetWindowCompositionAttribute (USER32.@)
+ */
+BOOL WINAPI SetWindowCompositionAttribute(HWND hwnd, void *data)
+{
+    FIXME("(%p, %p): stub\n", hwnd, data);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}




More information about the wine-cvs mailing list