mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
dinput: Call missing LeaveCriticalSection in the error case (found by Smatch).
This commit is contained in:
parent
1b95f60938
commit
553bafd535
@ -703,7 +703,10 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
||||
/* Check if we need to do a mouse warping */
|
||||
if (This->need_warp == WARP_NEEDED && (GetCurrentTime() - This->last_warped > 10)) {
|
||||
if(!dinput_window_check(This))
|
||||
{
|
||||
LeaveCriticalSection(&(This->crit));
|
||||
return DIERR_GENERIC;
|
||||
}
|
||||
TRACE("Warping mouse to %ld - %ld\n", This->mapped_center.x, This->mapped_center.y);
|
||||
SetCursorPos( This->mapped_center.x, This->mapped_center.y );
|
||||
This->last_warped = GetCurrentTime();
|
||||
|
Loading…
Reference in New Issue
Block a user