An app depends on a NULL return from CreateDIBPatternBrushPt if data

is NULL.
This commit is contained in:
Aric Stewart 2003-11-13 20:49:54 +00:00 committed by Alexandre Julliard
parent d6872aff18
commit f0e20a6c16

View File

@ -230,6 +230,9 @@ HBRUSH WINAPI CreateDIBPatternBrushPt(
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);