mirror of
https://github.com/reactos/reactos.git
synced 2024-08-06 19:36:50 +00:00
Use window thread instead of current thread to obtain desktop
svn path=/trunk/; revision=8031
This commit is contained in:
parent
f599776b65
commit
40bc1b6611
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Id: vis.c,v 1.16 2004/01/17 15:18:25 navaraf Exp $
|
* $Id: vis.c,v 1.17 2004/02/04 22:55:21 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -140,7 +140,7 @@ VIS_ComputeVisibleRegion(PWINDOW_OBJECT Window,
|
||||||
HRGN ClipRgn;
|
HRGN ClipRgn;
|
||||||
PWINDOW_OBJECT DesktopWindow;
|
PWINDOW_OBJECT DesktopWindow;
|
||||||
INT LeftOffset, TopOffset;
|
INT LeftOffset, TopOffset;
|
||||||
PDESKTOP_OBJECT Desktop = PsGetWin32Thread()->Desktop;
|
PDESKTOP_OBJECT Desktop = Window->OwnerThread->Win32Thread->Desktop;
|
||||||
|
|
||||||
DesktopWindow = IntGetWindowObject(Desktop->DesktopWindow);
|
DesktopWindow = IntGetWindowObject(Desktop->DesktopWindow);
|
||||||
if (NULL == DesktopWindow)
|
if (NULL == DesktopWindow)
|
||||||
|
|
Loading…
Reference in a new issue