From ab450aad07a93a547698c9315e6bbf1b53d0f22d Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 7 Jun 1999 17:38:53 +0000 Subject: [PATCH] Fixed order for entering critical sections (X11 vs. WndLock) when calling X11DRV_MOUSE_SetCursor. --- windows/x11drv/mouse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows/x11drv/mouse.c b/windows/x11drv/mouse.c index e2af577318f..27093df2443 100644 --- a/windows/x11drv/mouse.c +++ b/windows/x11drv/mouse.c @@ -178,9 +178,11 @@ static BOOL X11DRV_MOUSE_DoSetCursor( CURSORICONINFO *ptr ) */ void X11DRV_MOUSE_SetCursor( CURSORICONINFO *lpCursor ) { + WIN_LockWnds(); EnterCriticalSection( &X11DRV_CritSection ); CALL_LARGE_STACK( X11DRV_MOUSE_DoSetCursor, lpCursor ); LeaveCriticalSection( &X11DRV_CritSection ); + WIN_UnlockWnds(); } /*********************************************************************** -- 2.11.4.GIT