aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-18 09:32:43 +0000
committermarha <marha@users.sourceforge.net>2011-03-18 09:32:43 +0000
commitf42328963ef48163c38adf72c067078eaa717cff (patch)
tree1996106e8fb0cde1629c2cb7abf123cba9cd84ae
parent76b655664dad149451d0abaa15929d1b7b62e0c6 (diff)
downloadvcxsrv-f42328963ef48163c38adf72c067078eaa717cff.tar.gz
vcxsrv-f42328963ef48163c38adf72c067078eaa717cff.tar.bz2
vcxsrv-f42328963ef48163c38adf72c067078eaa717cff.zip
Solved possible crash due to NULL pointer access
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwndproc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwndproc.c b/xorg-server/hw/xwin/winmultiwindowwndproc.c
index fe262be61..91a488913 100644
--- a/xorg-server/hw/xwin/winmultiwindowwndproc.c
+++ b/xorg-server/hw/xwin/winmultiwindowwndproc.c
@@ -568,7 +568,10 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
break;
case WM_MOUSELEAVE:
- /* Mouse has left our client area */
+ /* We can't do anything without privates */
+ if (s_pScreenPriv == NULL || s_pScreenInfo->fIgnoreInput)
+ break;
+ /* Mouse has left our client area */
/* Flag that we are no longer tracking */
s_fTracking = FALSE;