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:
Carsten Haitzler 2011-07-05 09:54:57 +00:00
parent f7c9b4fa43
commit 2bff72b07a
1 changed files with 1 additions and 1 deletions

View File

@ -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;