Fixed order for entering critical sections (X11 vs. WndLock) when

calling X11DRV_MOUSE_SetCursor.
This commit is contained in:
Eric Pouech 1999-06-07 17:38:53 +00:00 committed by Alexandre Julliard
parent d523e4dbe6
commit ab450aad07
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}
/***********************************************************************