Commit 444f9212 authored by Richard Cohen's avatar Richard Cohen Committed by Alexandre Julliard

Added missing GDI_ReleaseObj() to GetDCBrushColor & GetDCPenColor.

parent ee33c001
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment