Commit f0e20a6c authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

An app depends on a NULL return from CreateDIBPatternBrushPt if data

is NULL.
parent d6872aff
...@@ -230,6 +230,9 @@ HBRUSH WINAPI CreateDIBPatternBrushPt( ...@@ -230,6 +230,9 @@ HBRUSH WINAPI CreateDIBPatternBrushPt(
BITMAPINFO *info=(BITMAPINFO*)data; BITMAPINFO *info=(BITMAPINFO*)data;
LOGBRUSH logbrush; LOGBRUSH logbrush;
if (!data)
return NULL;
TRACE("%p %ldx%ld %dbpp\n", info, info->bmiHeader.biWidth, TRACE("%p %ldx%ld %dbpp\n", info, info->bmiHeader.biWidth,
info->bmiHeader.biHeight, info->bmiHeader.biBitCount); info->bmiHeader.biHeight, info->bmiHeader.biBitCount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment