winex11.drv: Handle failure of XcursorImageCreate.

This commit is contained in:
Dmitry Timoshkov 2009-08-12 17:16:48 +09:00 committed by Alexandre Julliard
parent 96e44ddb78
commit 32e3539413
1 changed files with 2 additions and 0 deletions

View File

@ -486,6 +486,8 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr )
xor_ptr = xor_bits = and_ptr + and_size;
image = pXcursorImageCreate( ptr->nWidth, ptr->nHeight );
if (!image) return NULL;
pixel_ptr = image->pixels;
alpha_zero = check_alpha_zero(ptr, xor_bits);