Added leaving of critical section on all return cases.

This commit is contained in:
Lionel Ulmer 2000-04-28 20:00:43 +00:00 committed by Alexandre Julliard
parent 1f9b4b0a8f
commit 48393a762e
1 changed files with 1 additions and 0 deletions

View File

@ -1251,6 +1251,7 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
(posX == This->win_centerX) && (posX == This->win_centerX)) {
/* Warp has been done... */
This->need_warp = WARP_DONE;
LeaveCriticalSection(&(This->crit));
return;
}