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 New Issue