Fix MSVC build.

svn path=/trunk/; revision=54639
This commit is contained in:
Sylvain Petreolle 2011-12-10 21:30:17 +00:00
parent 388f6d13c8
commit df57cb5880

View file

@ -632,6 +632,7 @@ IntDispatchMessage(PMSG pMsg)
LRESULT retval = 0;
PTHREADINFO pti;
PWND Window = NULL;
HRGN hrgn;
if (pMsg->hwnd)
{
@ -705,7 +706,7 @@ IntDispatchMessage(PMSG pMsg)
{
Window->state2 &= ~WNDS2_WMPAINTSENT;
/* send a WM_NCPAINT and WM_ERASEBKGND if the non-client area is still invalid */
HRGN hrgn = IntSysCreateRectRgn( 0, 0, 0, 0 );
hrgn = IntSysCreateRectRgn( 0, 0, 0, 0 );
co_UserGetUpdateRgn( Window, hrgn, TRUE );
GreDeleteObject(hrgn);
}