James Hawkins : dinput:
Call missing LeaveCriticalSection in the error case (found by Smatch).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 6 13:37:10 CDT 2006
Module: wine
Branch: master
Commit: 553bafd535c2dbbc5f2a49b423982285c35112e1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=553bafd535c2dbbc5f2a49b423982285c35112e1
Author: James Hawkins <truiken at gmail.com>
Date: Thu Oct 5 19:39:54 2006 -0700
dinput: Call missing LeaveCriticalSection in the error case (found by Smatch).
---
dlls/dinput/mouse.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c
index aae5e9a..ea4b2c4 100644
--- a/dlls/dinput/mouse.c
+++ b/dlls/dinput/mouse.c
@@ -703,7 +703,10 @@ static HRESULT WINAPI SysMouseAImpl_GetD
/* 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();
More information about the wine-cvs
mailing list