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
8932f539
Commit
8932f539
authored
Oct 26, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Canonicalize code style of IDirectInput7WImpl_CreateDeviceEx.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
591be9d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
dinput_main.c
dlls/dinput/dinput_main.c
+12
-14
No files found.
dlls/dinput/dinput_main.c
View file @
8932f539
...
...
@@ -605,38 +605,36 @@ static HRESULT WINAPI IDirectInput2WImpl_FindDevice(LPDIRECTINPUT7W iface, REFGU
return
DI_OK
;
}
static
HRESULT
WINAPI
IDirectInput7WImpl_CreateDeviceEx
(
IDirectInput7W
*
iface
,
REFGUID
rguid
,
REFIID
ri
id
,
LPVOID
*
pvOut
,
LPUNKNOWN
lpUnknownO
uter
)
static
HRESULT
WINAPI
IDirectInput7WImpl_CreateDeviceEx
(
IDirectInput7W
*
iface
,
const
GUID
*
gu
id
,
const
GUID
*
iid
,
void
**
out
,
IUnknown
*
o
uter
)
{
IDirectInputImpl
*
impl
=
impl_from_IDirectInput7W
(
iface
);
IDirectInputDevice8W
*
device
;
IDirectInputImpl
*
This
=
impl_from_IDirectInput7W
(
iface
);
unsigned
int
i
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s, %s, %p, %p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
debugstr_guid
(
riid
),
pvOut
,
lpUnknownOuter
);
if
(
pvOut
)
*
pvOut
=
NULL
;
TRACE
(
"iface %p, guid %s, iid %s, out %p, outer %p
\n
"
,
iface
,
debugstr_guid
(
guid
),
debugstr_guid
(
iid
),
out
,
outer
);
if
(
!
rguid
||
!
pvOut
)
return
E_POINTER
;
if
(
!
out
)
return
E_POINTER
;
*
out
=
NULL
;
if
(
!
This
->
initialized
)
return
DIERR_NOTINITIALIZED
;
if
(
!
guid
)
return
E_POINTER
;
if
(
!
impl
->
initialized
)
return
DIERR_NOTINITIALIZED
;
/* Loop on all the devices to see if anyone matches the given GUID */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
dinput_devices
);
i
++
)
{
if
(
!
dinput_devices
[
i
]
->
create_device
)
continue
;
if
(
SUCCEEDED
(
hr
=
dinput_devices
[
i
]
->
create_device
(
This
,
r
guid
,
&
device
)))
if
(
SUCCEEDED
(
hr
=
dinput_devices
[
i
]
->
create_device
(
impl
,
guid
,
&
device
)))
{
hr
=
IDirectInputDevice8_QueryInterface
(
device
,
riid
,
pvO
ut
);
hr
=
IDirectInputDevice8_QueryInterface
(
device
,
iid
,
o
ut
);
IDirectInputDevice8_Release
(
device
);
return
hr
;
}
}
WARN
(
"invalid device GUID %s
\n
"
,
debugstr_guid
(
rguid
)
);
WARN
(
"invalid device GUID %s
\n
"
,
debugstr_guid
(
guid
)
);
return
DIERR_DEVICENOTREG
;
}
...
...
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