Alexandre Julliard : winex11: Add window data structure locking to the SetLayeredWindowAttributes entry point .

Alexandre Julliard julliard at winehq.org
Mon Sep 24 16:04:27 CDT 2012


Module: wine
Branch: master
Commit: b515beb4a07f9ac325e2cbb9efefb086b2ac9d69
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b515beb4a07f9ac325e2cbb9efefb086b2ac9d69

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Sep 24 14:09:04 2012 +0200

winex11: Add window data structure locking to the SetLayeredWindowAttributes entry point.

---

 dlls/winex11.drv/window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 6b8dc0c..c9211f4 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2325,7 +2325,7 @@ int CDECL X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
  */
 void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags )
 {
-    struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
+    struct x11drv_win_data *data = get_win_data( hwnd );
 
     if (data)
     {
@@ -2333,6 +2333,7 @@ void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alph
             sync_window_opacity( data->display, data->whole_window, key, alpha, flags );
         if (data->surface)
             set_surface_color_key( data->surface, (flags & LWA_COLORKEY) ? key : CLR_INVALID );
+        release_win_data( data );
     }
     else
     {
@@ -2341,7 +2342,7 @@ void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alph
         {
             sync_window_opacity( gdi_display, win, key, alpha, flags );
             if (flags & LWA_COLORKEY)
-                FIXME( "LWA_COLORKEY not supported on foreign thread window %p\n", hwnd );
+                FIXME( "LWA_COLORKEY not supported on foreign process window %p\n", hwnd );
         }
     }
 }




More information about the wine-cvs mailing list