From b8054aafb3dfd62ab291445b64d51789b1d19058 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Tue, 21 Oct 2003 19:40:05 +0000 Subject: [PATCH] fixed small bug in WinPosSetActiveWindow() svn path=/trunk/; revision=6395 --- reactos/subsys/win32k/ntuser/winpos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/winpos.c b/reactos/subsys/win32k/ntuser/winpos.c index 6077d2d8d2c..cb2185dfa87 100644 --- a/reactos/subsys/win32k/ntuser/winpos.c +++ b/reactos/subsys/win32k/ntuser/winpos.c @@ -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: winpos.c,v 1.34 2003/10/20 14:00:58 weiden Exp $ +/* $Id: winpos.c,v 1.35 2003/10/21 19:40:05 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -1246,7 +1246,8 @@ WinPosSetActiveWindow(PWINDOW_OBJECT Window, BOOL Mouse, BOOL ChangeFocus) } else { - ActiveQueue->ActiveWindow = NULL; + if(ActiveQueue) + ActiveQueue->ActiveWindow = NULL; PrevActive = NULL; } }