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) ...@@ -1477,6 +1477,7 @@ COLORREF WINAPI GetDCBrushColor(HDC hdc)
if (dc) if (dc)
{ {
dcBrushColor = dc->dcBrushColor; dcBrushColor = dc->dcBrushColor;
GDI_ReleaseObj( hdc );
} }
return dcBrushColor; return dcBrushColor;
...@@ -1540,6 +1541,7 @@ COLORREF WINAPI GetDCPenColor(HDC hdc) ...@@ -1540,6 +1541,7 @@ COLORREF WINAPI GetDCPenColor(HDC hdc)
if (dc) if (dc)
{ {
dcPenColor = dc->dcPenColor; dcPenColor = dc->dcPenColor;
GDI_ReleaseObj( hdc );
} }
return dcPenColor; 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