mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-25 11:26:23 +00:00
Added missing GDI_ReleaseObj() to GetDCBrushColor & GetDCPenColor.
This commit is contained in:
parent
ee33c001ac
commit
444f9212af
|
@ -1477,6 +1477,7 @@ COLORREF WINAPI GetDCBrushColor(HDC hdc)
|
|||
if (dc)
|
||||
{
|
||||
dcBrushColor = dc->dcBrushColor;
|
||||
GDI_ReleaseObj( hdc );
|
||||
}
|
||||
|
||||
return dcBrushColor;
|
||||
|
@ -1540,6 +1541,7 @@ COLORREF WINAPI GetDCPenColor(HDC hdc)
|
|||
if (dc)
|
||||
{
|
||||
dcPenColor = dc->dcPenColor;
|
||||
GDI_ReleaseObj( hdc );
|
||||
}
|
||||
|
||||
return dcPenColor;
|
||||
|
|
Loading…
Reference in a new issue