Skip to content
Snippets Groups Projects
Commit 500c201b authored by Sander van Leeuwen's avatar Sander van Leeuwen Committed by Alexandre Julliard
Browse files

Fixed DC leak.

parent 7ccd27a6
No related branches found
No related tags found
No related merge requests found
......@@ -509,13 +509,14 @@ static BOOL TEXT_GrayString(HDC hdc, HBRUSH hb, GRAYSTRINGPROC fn, LPARAM lp, IN
HBITMAP hbm, hbmsave;
HBRUSH hbsave;
HFONT hfsave;
HDC memdc = CreateCompatibleDC(hdc);
HDC memdc;
int slen = len;
BOOL retval = TRUE;
COLORREF fg, bg;
if(!hdc) return FALSE;
if (!(memdc = CreateCompatibleDC(hdc))) return FALSE;
if(len == 0)
{
if(unicode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment