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
c6011504
Commit
c6011504
authored
May 16, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Rename This to device in dinput_device_alloc.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
10b00e66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
device.c
dlls/dinput/device.c
+17
-17
No files found.
dlls/dinput/device.c
View file @
c6011504
...
...
@@ -2147,25 +2147,25 @@ static const IDirectInputDevice8WVtbl dinput_device_w_vtbl =
HRESULT
dinput_device_alloc
(
SIZE_T
size
,
const
struct
dinput_device_vtbl
*
vtbl
,
const
GUID
*
guid
,
struct
dinput
*
dinput
,
void
**
out
)
{
struct
dinput_device
*
This
;
if
(
!
(
This
=
calloc
(
1
,
size
)))
return
DIERR_OUTOFMEMORY
;
This
->
IDirectInputDevice8A_iface
.
lpVtbl
=
&
dinput_device_a_vtbl
;
This
->
IDirectInputDevice8W_iface
.
lpVtbl
=
&
dinput_device_w_vtbl
;
This
->
ref
=
1
;
This
->
guid
=
*
guid
;
This
->
instance
.
dwSize
=
sizeof
(
DIDEVICEINSTANCEW
);
This
->
caps
.
dwSize
=
sizeof
(
DIDEVCAPS
);
This
->
caps
.
dwFlags
=
DIDC_ATTACHED
|
DIDC_EMULATED
;
This
->
device_gain
=
10000
;
This
->
force_feedback_state
=
DIGFFS_STOPPED
|
DIGFFS_EMPTY
;
InitializeCriticalSection
(
&
This
->
crit
);
This
->
dinput
=
dinput
;
struct
dinput_device
*
device
;
if
(
!
(
device
=
calloc
(
1
,
size
)))
return
DIERR_OUTOFMEMORY
;
device
->
IDirectInputDevice8A_iface
.
lpVtbl
=
&
dinput_device_a_vtbl
;
device
->
IDirectInputDevice8W_iface
.
lpVtbl
=
&
dinput_device_w_vtbl
;
device
->
ref
=
1
;
device
->
guid
=
*
guid
;
device
->
instance
.
dwSize
=
sizeof
(
DIDEVICEINSTANCEW
);
device
->
caps
.
dwSize
=
sizeof
(
DIDEVCAPS
);
device
->
caps
.
dwFlags
=
DIDC_ATTACHED
|
DIDC_EMULATED
;
device
->
device_gain
=
10000
;
device
->
force_feedback_state
=
DIGFFS_STOPPED
|
DIGFFS_EMPTY
;
InitializeCriticalSection
(
&
device
->
crit
);
device
->
dinput
=
dinput
;
IDirectInput_AddRef
(
&
dinput
->
IDirectInput7A_iface
);
This
->
vtbl
=
vtbl
;
device
->
vtbl
=
vtbl
;
*
out
=
This
;
*
out
=
device
;
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