Commit 5f930d89 authored by Jim Aston's avatar Jim Aston Committed by Alexandre Julliard

Prevent FillRgn from using a NULL pointer.

parent 13d00c8d
...@@ -583,6 +583,7 @@ BOOL WINAPI FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush ) ...@@ -583,6 +583,7 @@ BOOL WINAPI FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush )
HBRUSH prevBrush; HBRUSH prevBrush;
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCPtr( hdc );
if (!dc) return FALSE;
if(dc->funcs->pFillRgn) if(dc->funcs->pFillRgn)
return dc->funcs->pFillRgn(dc, hrgn, hbrush); return dc->funcs->pFillRgn(dc, hrgn, hbrush);
......
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