Commit 48393a76 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Added leaving of critical section on all return cases.

parent 1f9b4b0a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment