Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
81fc89fa
Commit
81fc89fa
authored
Aug 19, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Check acquired flag instead of fd.
parent
3cd13628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+7
-5
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
81fc89fa
...
...
@@ -737,7 +737,8 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceState(
TRACE
(
"(this=%p,0x%08x,%p)
\n
"
,
This
,
len
,
ptr
);
if
(
This
->
joyfd
==-
1
)
{
if
(
!
This
->
base
.
acquired
)
{
WARN
(
"not acquired
\n
"
);
return
DIERR_NOTACQUIRED
;
}
...
...
@@ -863,13 +864,14 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
return
DI_OK
;
}
static
HRESULT
WINAPI
JoystickAImpl_Poll
(
LPDIRECTINPUTDEVICE8A
iface
)
{
static
HRESULT
WINAPI
JoystickAImpl_Poll
(
LPDIRECTINPUTDEVICE8A
iface
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
joyfd
==-
1
)
{
return
DIERR_NOTACQUIRED
;
}
if
(
!
This
->
base
.
acquired
)
return
DIERR_NOTACQUIRED
;
joy_polldev
(
This
);
return
DI_OK
;
...
...
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