mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
IntFindWindowToRepaint() only returns window handles that belong to the given thread
svn path=/trunk/; revision=7123
This commit is contained in:
parent
83d245a222
commit
b3720ef867
1 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: painting.c,v 1.48 2003/12/18 21:42:38 weiden Exp $
|
||||
* $Id: painting.c,v 1.49 2003/12/18 21:56:44 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -587,8 +587,9 @@ IntFindWindowToRepaint(HWND hWnd, PW32THREAD Thread)
|
|||
if (Window == NULL)
|
||||
return NULL;
|
||||
|
||||
if (Window->UpdateRegion != NULL ||
|
||||
Window->Flags & (WINDOWOBJECT_NEED_INTERNALPAINT | WINDOWOBJECT_NEED_NCPAINT))
|
||||
if ((Window->UpdateRegion != NULL ||
|
||||
Window->Flags & (WINDOWOBJECT_NEED_INTERNALPAINT | WINDOWOBJECT_NEED_NCPAINT)) &&
|
||||
IntWndBelongsToThread(Window, Thread))
|
||||
{
|
||||
IntReleaseWindowObject(Window);
|
||||
return hWnd;
|
||||
|
|
Loading…
Reference in a new issue