mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[User32]
- Fix select old brush in FillRect. svn path=/trunk/; revision=51186
This commit is contained in:
parent
9e22fe5962
commit
827e75cb89
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue