brush: null ptr check
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Thu Nov 13 11:26:17 CST 2003
Aric Stewart <aric at codeweavers.com>
An app depends on a NULL return if data == NULL
--
Huw Davies
huw at codeweavers.com
Index: objects/brush.c
===================================================================
RCS file: /home/wine/wine/objects/brush.c,v
retrieving revision 1.36
diff -u -r1.36 brush.c
--- objects/brush.c 5 Sep 2003 23:15:42 -0000 1.36
+++ objects/brush.c 13 Nov 2003 17:23:40 -0000
@@ -230,6 +230,9 @@
BITMAPINFO *info=(BITMAPINFO*)data;
LOGBRUSH logbrush;
+ if (!data)
+ return NULL;
+
TRACE("%p %ldx%ld %dbpp\n", info, info->bmiHeader.biWidth,
info->bmiHeader.biHeight, info->bmiHeader.biBitCount);
More information about the wine-patches
mailing list