Added missing GDI_ReleaseObj() to GetDCBrushColor & GetDCPenColor.

This commit is contained in:
Richard Cohen 2003-11-30 01:43:00 +00:00 committed by Alexandre Julliard
parent ee33c001ac
commit 444f9212af

View file

@ -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;