Commit 500c201b authored by Sander van Leeuwen's avatar Sander van Leeuwen Committed by Alexandre Julliard

Fixed DC leak.

parent 7ccd27a6
...@@ -509,13 +509,14 @@ static BOOL TEXT_GrayString(HDC hdc, HBRUSH hb, GRAYSTRINGPROC fn, LPARAM lp, IN ...@@ -509,13 +509,14 @@ static BOOL TEXT_GrayString(HDC hdc, HBRUSH hb, GRAYSTRINGPROC fn, LPARAM lp, IN
HBITMAP hbm, hbmsave; HBITMAP hbm, hbmsave;
HBRUSH hbsave; HBRUSH hbsave;
HFONT hfsave; HFONT hfsave;
HDC memdc = CreateCompatibleDC(hdc); HDC memdc;
int slen = len; int slen = len;
BOOL retval = TRUE; BOOL retval = TRUE;
COLORREF fg, bg; COLORREF fg, bg;
if(!hdc) return FALSE; if(!hdc) return FALSE;
if (!(memdc = CreateCompatibleDC(hdc))) return FALSE;
if(len == 0) if(len == 0)
{ {
if(unicode) if(unicode)
......
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