Commit cc255b0c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

If XShmAttach fails then reset shmid to -1 so that we don't try to use

it later.
parent 5960e7c9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment