From f42328963ef48163c38adf72c067078eaa717cff Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 18 Mar 2011 09:32:43 +0000 Subject: Solved possible crash due to NULL pointer access --- xorg-server/hw/xwin/winmultiwindowwndproc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xorg-server/hw/xwin') 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; -- cgit v1.2.3