Dmitry Timoshkov : winex11.drv: Handle failure of XcursorImageCreate.
Alexandre Julliard
julliard at winehq.org
Wed Aug 12 11:09:02 CDT 2009
Module: wine
Branch: master
Commit: 32e3539413e6383dbf91934ec5395a68282ae760
URL: http://source.winehq.org/git/wine.git/?a=commit;h=32e3539413e6383dbf91934ec5395a68282ae760
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Aug 12 17:16:48 2009 +0900
winex11.drv: Handle failure of XcursorImageCreate.
---
dlls/winex11.drv/mouse.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 5282412..60351e5 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -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);
More information about the wine-cvs
mailing list