Author: jimtabor
Date: Tue Mar 29 05:11:02 2011
New Revision: 51186
URL:
http://svn.reactos.org/svn/reactos?rev=51186&view=rev
Log:
[User32]
- Fix select old brush in FillRect.
Modified:
trunk/reactos/dll/win32/user32/windows/draw.c
Modified: trunk/reactos/dll/win32/user32/windows/draw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] Tue Mar 29 05:11:02 2011
@@ -1564,8 +1564,8 @@
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 @@
lprc->bottom - lprc->top, PATCOPY);
/* Select old brush */
- if (hbr)
+ if (prevhbr)
SelectObject(hDC, prevhbr);
return (INT)Ret;