dib: fail nicely on XShmAttach failure
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Fri Apr 22 09:27:20 CDT 2005
Huw Davies <huw at codeweavers.com>
If XShmAttach fails then reset shmid to -1 so that we don't
try to use it later.
--
Huw Davies
huw at codeweavers.com
Index: dlls/x11drv/dib.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/dib.c,v
retrieving revision 1.37
diff -u -p -r1.37 dib.c
--- dlls/x11drv/dib.c 20 Apr 2005 18:45:28 -0000 1.37
+++ dlls/x11drv/dib.c 22 Apr 2005 14:23:33 -0000
@@ -4583,6 +4583,7 @@ static XImage *X11DRV_XShmCreateImage( i
shmdt(shminfo->shmaddr);
}
shmctl(shminfo->shmid, IPC_RMID, 0);
+ shminfo->shmid = -1;
}
XFlush(gdi_display);
XDestroyImage(image);
More information about the wine-patches
mailing list