diff options
Diffstat (limited to 'src/XvMC.c')
-rw-r--r-- | src/XvMC.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -526,7 +526,7 @@ Status XvMCGetDRInfo(Display *dpy, XvPortID port, if (shmKey >= 0) { shMem = (CARD32 *) shmat(shmKey, NULL, 0); shmctl(shmKey, IPC_RMID, NULL); - if ( shMem ) { + if (shMem != (void *) -1) { register volatile CARD32 *shMemC = shMem; register int i; |