Aric Stewart <aric@xxxxxxxxxxxxxxx> An app depends on a NULL return if data == NULL -- Huw Davies huw@xxxxxxxxxxxxxxx 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);