From cc255b0c8bb3b11086f393f9e6e8b6ed0f9b9ad7 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 22 Apr 2005 19:06:41 +0000 Subject: [PATCH] If XShmAttach fails then reset shmid to -1 so that we don't try to use it later. --- dlls/x11drv/dib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/x11drv/dib.c b/dlls/x11drv/dib.c index 91dfdeeef84..d93a4e294c3 100644 --- a/dlls/x11drv/dib.c +++ b/dlls/x11drv/dib.c @@ -4583,6 +4583,7 @@ static XImage *X11DRV_XShmCreateImage( int width, int height, int bpp, shmdt(shminfo->shmaddr); } shmctl(shminfo->shmid, IPC_RMID, 0); + shminfo->shmid = -1; } XFlush(gdi_display); XDestroyImage(image);