From 48393a762e16b639d796cc7cf1d11c3c3c5a1819 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Fri, 28 Apr 2000 20:00:43 +0000 Subject: [PATCH] Added leaving of critical section on all return cases. --- dlls/dinput/dinput_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 622dbcb24fd..4cfeb10d163 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -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; }