* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: mouse.c,v 1.14 2002/10/31 00:03:30 dwelch Exp $
+/* $Id: mouse.c,v 1.15 2002/11/01 11:29:57 dwelch Exp $
*
* PROJECT: ReactOS kernel
* PURPOSE: Mouse
tmp = HazardY2; HazardY2 = HazardY1; HazardY1 = tmp;
}
- if ((mouse_x + mouse_width >= HazardX1) && (mouse_x <= HazardX2) &&
- (mouse_y + mouse_height >= HazardY1) && (mouse_y <= HazardY2))
+ if (((mouse_x + mouse_width) >= HazardX1) && (mouse_x <= HazardX2) &&
+ ((mouse_y + mouse_height) >= HazardY1) && (mouse_y <= HazardY2))
{
SurfGDI->MovePointer(SurfObj, -1, -1, &MouseRect);
SafetySwitch = TRUE;
-/* $Id: msgqueue.c,v 1.6 2002/10/31 00:03:31 dwelch Exp $
+/* $Id: msgqueue.c,v 1.7 2002/11/01 11:29:58 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
*HitTest = WinPosWindowFromPoint(ScopeWin, Message->Msg.pt, &Window);
+ if (Window == NULL)
+ {
+ ExFreePool(Message);
+ return(FALSE);
+ }
if (Window->MessageQueue != PsGetWin32Thread()->MessageQueue)
{
ExAcquireFastMutex(&Window->MessageQueue->Lock);
-/* $Id: winpos.c,v 1.6 2002/10/31 00:03:31 dwelch Exp $
+/* $Id: winpos.c,v 1.7 2002/11/01 11:29:58 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return(HitTest);
}
+ if ((*Window) == NULL)
+ {
+ return(HTNOWHERE);
+ }
if ((*Window)->MessageQueue == PsGetWin32Thread()->MessageQueue)
{
HitTest = W32kSendMessage((*Window)->Self, WM_NCHITTEST, 0,