gdi32: Fix possible NULL pointer dereference (Coverity).
This commit is contained in:
parent
1ee9ea91a5
commit
4b098028f3
|
@ -1617,8 +1617,11 @@ INT WINAPI GetRelAbs( HDC hdc, DWORD dwIgnore )
|
||||||
{
|
{
|
||||||
INT ret = 0;
|
INT ret = 0;
|
||||||
DC *dc = DC_GetDCPtr( hdc );
|
DC *dc = DC_GetDCPtr( hdc );
|
||||||
if (dc) ret = dc->relAbsMode;
|
if (dc)
|
||||||
|
{
|
||||||
|
ret = dc->relAbsMode;
|
||||||
DC_ReleaseDCPtr( dc );
|
DC_ReleaseDCPtr( dc );
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue