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
adbc9ae1
Commit
adbc9ae1
authored
Jan 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Rename lpdid local variable to device.
parent
1b7750e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
dinput.c
dlls/dinput/dinput.c
+10
-10
No files found.
dlls/dinput/dinput.c
View file @
adbc9ae1
...
...
@@ -498,8 +498,8 @@ static HRESULT WINAPI dinput8_EnumDevicesBySemantics( IDirectInput8W *iface, con
static
const
GUID
*
guids
[
2
]
=
{
&
GUID_SysKeyboard
,
&
GUID_SysMouse
};
static
const
DWORD
actionMasks
[]
=
{
DIKEYBOARD_MASK
,
DIMOUSE_MASK
};
struct
dinput
*
impl
=
impl_from_IDirectInput8W
(
iface
);
IDirectInputDevice8W
*
device
;
DIDEVICEINSTANCEW
didevi
;
IDirectInputDevice8W
*
lpdid
;
unsigned
int
i
=
0
;
HRESULT
hr
;
int
remain
;
...
...
@@ -530,15 +530,15 @@ static HRESULT WINAPI dinput8_EnumDevicesBySemantics( IDirectInput8W *iface, con
for
(
i
=
0
;
i
<
params
.
instance_count
;
i
++
)
{
callbackFlags
=
diactionformat_priorityW
(
action_format
,
action_format
->
dwGenre
);
IDirectInput_CreateDevice
(
iface
,
&
params
.
instances
[
i
].
guidInstance
,
&
lpdid
,
NULL
);
IDirectInput_CreateDevice
(
iface
,
&
params
.
instances
[
i
].
guidInstance
,
&
device
,
NULL
);
if
(
callback
(
&
params
.
instances
[
i
],
lpdid
,
callbackFlags
,
--
remain
,
context
)
==
DIENUM_STOP
)
if
(
callback
(
&
params
.
instances
[
i
],
device
,
callbackFlags
,
--
remain
,
context
)
==
DIENUM_STOP
)
{
free
(
params
.
instances
);
IDirectInputDevice_Release
(
lpdid
);
IDirectInputDevice_Release
(
device
);
return
DI_OK
;
}
IDirectInputDevice_Release
(
lpdid
);
IDirectInputDevice_Release
(
device
);
}
free
(
params
.
instances
);
...
...
@@ -552,15 +552,15 @@ static HRESULT WINAPI dinput8_EnumDevicesBySemantics( IDirectInput8W *iface, con
{
callbackFlags
=
diactionformat_priorityW
(
action_format
,
actionMasks
[
i
]
);
IDirectInput_CreateDevice
(
iface
,
guids
[
i
],
&
lpdid
,
NULL
);
IDirectInputDevice_GetDeviceInfo
(
lpdid
,
&
didevi
);
IDirectInput_CreateDevice
(
iface
,
guids
[
i
],
&
device
,
NULL
);
IDirectInputDevice_GetDeviceInfo
(
device
,
&
didevi
);
if
(
callback
(
&
didevi
,
lpdid
,
callbackFlags
,
--
remain
,
context
)
==
DIENUM_STOP
)
if
(
callback
(
&
didevi
,
device
,
callbackFlags
,
--
remain
,
context
)
==
DIENUM_STOP
)
{
IDirectInputDevice_Release
(
lpdid
);
IDirectInputDevice_Release
(
device
);
return
DI_OK
;
}
IDirectInputDevice_Release
(
lpdid
);
IDirectInputDevice_Release
(
device
);
}
}
...
...
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