Prevent FillRgn from using a NULL pointer.
This commit is contained in:
parent
13d00c8dd1
commit
5f930d89e4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue