forked from enlightenment/efl
actually handle -1 pointer return from shmat correctly. man. i cant
believe the code has checked for NULL all these years rather than -1!! SVN revision: 61036
This commit is contained in:
parent
f7c9b4fa43
commit
2bff72b07a
|
@ -294,7 +294,7 @@ evas_software_xlib_x_output_buffer_new(Display *d, Visual *v, int depth, int w,
|
|||
xob->shm_info->readOnly = False;
|
||||
xob->shm_info->shmaddr = xob->xim->data =
|
||||
shmat(xob->shm_info->shmid, 0, 0);
|
||||
if (xob->shm_info->shmaddr)
|
||||
if (xob->shm_info->shmaddr != ((void *)-1))
|
||||
{
|
||||
XErrorHandler ph;
|
||||
|
||||
|
|
Loading…
Reference in New Issue