Prevent FillRgn from using a NULL pointer.

This commit is contained in:
Jim Aston 1999-10-31 17:42:16 +00:00 committed by Alexandre Julliard
parent 13d00c8dd1
commit 5f930d89e4

View file

@ -583,6 +583,7 @@ BOOL WINAPI FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush )
HBRUSH prevBrush;
DC * dc = DC_GetDCPtr( hdc );
if (!dc) return FALSE;
if(dc->funcs->pFillRgn)
return dc->funcs->pFillRgn(dc, hrgn, hbrush);