- Plug an icon leak.

svn path=/trunk/; revision=57640
This commit is contained in:
Jérôme Gardou 2012-10-28 14:37:40 +00:00
parent a769501f01
commit 2108e7256c

View file

@ -2003,6 +2003,7 @@ BOOL UserDrawCaption(
LONG x = Rect.left - cx/2 + 1 + (Rect.bottom - Rect.top)/2; // this is really what Window does
LONG y = (Rect.top + Rect.bottom)/2 - cy/2; // center
UserDrawIconEx(hDc, x, y, pIcon, cx, cy, 0, NULL, DI_NORMAL);
UserDereferenceObject(pIcon);
}
}