Fix a crash when an ARGB cursor allocation had failed.

This commit is contained in:
Eric Anholt 2007-03-02 11:03:16 -08:00
parent d5df52be59
commit 5a73624b9b
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ static Bool I830UseHWCursorARGB (ScreenPtr pScreen, CursorPtr pCurs)
for (i = 0; i < xf86_config->num_crtc; i++) {
I830CrtcPrivatePtr intel_crtc = xf86_config->crtc[i]->driver_private;
if (!intel_crtc->cursor_mem_argb->offset)
if (intel_crtc->cursor_mem_argb == NULL)
return FALSE;
}