Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
553bafd5
Commit
553bafd5
authored
Oct 05, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Call missing LeaveCriticalSection in the error case (found by Smatch).
parent
1b95f609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mouse.c
dlls/dinput/mouse.c
+3
-0
No files found.
dlls/dinput/mouse.c
View file @
553bafd5
...
@@ -703,7 +703,10 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
...
@@ -703,7 +703,10 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
/* Check if we need to do a mouse warping */
/* Check if we need to do a mouse warping */
if
(
This
->
need_warp
==
WARP_NEEDED
&&
(
GetCurrentTime
()
-
This
->
last_warped
>
10
))
{
if
(
This
->
need_warp
==
WARP_NEEDED
&&
(
GetCurrentTime
()
-
This
->
last_warped
>
10
))
{
if
(
!
dinput_window_check
(
This
))
if
(
!
dinput_window_check
(
This
))
{
LeaveCriticalSection
(
&
(
This
->
crit
));
return
DIERR_GENERIC
;
return
DIERR_GENERIC
;
}
TRACE
(
"Warping mouse to %ld - %ld
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
TRACE
(
"Warping mouse to %ld - %ld
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
SetCursorPos
(
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
SetCursorPos
(
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
This
->
last_warped
=
GetCurrentTime
();
This
->
last_warped
=
GetCurrentTime
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment