Added leaving of critical section on all return cases.
This commit is contained in:
parent
1f9b4b0a8f
commit
48393a762e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue