Fix for deadlock when using private colormap

Finlo Boyde fin at neeps.net
Wed Feb 18 16:13:34 CST 2004


Hi,
  The deadlock would occurs because it skips over the unlock if you use a 
private colormap.
	
Changelog:
	Fix for deadlock when using private colormap

Index: palette.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/palette.c,v
retrieving revision 1.3
diff -u -r1.3 palette.c
--- palette.c	20 Jan 2004 22:04:00 -0000	1.3
+++ palette.c	18 Feb 2004 21:59:02 -0000
@@ -170,11 +170,11 @@
 		    win_attr.colormap = X11DRV_PALETTE_PaletteXColormap;
 		    XChangeWindowAttributes( gdi_display, root_window, CWColormap, &win_attr );
 		}
-		break;
 	    }
+	} else {
+	  X11DRV_PALETTE_PaletteXColormap = XCreateColormap(gdi_display, root_window,
+							    visual, AllocNone);
 	}
-        X11DRV_PALETTE_PaletteXColormap = XCreateColormap(gdi_display, root_window,
-                                                          visual, AllocNone);
         wine_tsx11_unlock();
         break;
     }





More information about the wine-patches mailing list