mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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;
|
||||
DC *dc = DC_GetDCPtr( hdc );
|
||||
if (dc) ret = dc->relAbsMode;
|
||||
DC_ReleaseDCPtr( dc );
|
||||
if (dc)
|
||||
{
|
||||
ret = dc->relAbsMode;
|
||||
DC_ReleaseDCPtr( dc );
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user