- Fix select old brush in FillRect.

svn path=/trunk/; revision=51186
This commit is contained in:
James Tabor 2011-03-29 05:11:02 +00:00
parent 9e22fe5962
commit 827e75cb89

View file

@ -1564,8 +1564,8 @@ FlashWindow(HWND hWnd, BOOL bInvert)
INT WINAPI
FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
{
HBRUSH prevhbr;
BOOL Ret;
HBRUSH prevhbr = NULL;
/* Select brush if specified */
if (hbr)
@ -1583,7 +1583,7 @@ FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
lprc->bottom - lprc->top, PATCOPY);
/* Select old brush */
if (hbr)
if (prevhbr)
SelectObject(hDC, prevhbr);
return (INT)Ret;