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
70a49548
Commit
70a49548
authored
Jan 23, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8: Remove superfluous pointer casts.
parent
aea94788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dinput8_main.c
dlls/dinput8/dinput8_main.c
+3
-3
No files found.
dlls/dinput8/dinput8_main.c
View file @
70a49548
...
@@ -74,12 +74,12 @@ HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid,
...
@@ -74,12 +74,12 @@ HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid,
/* When aggregation is used (punkOuter!=NULL) the application needs to manually call Initialize. */
/* When aggregation is used (punkOuter!=NULL) the application needs to manually call Initialize. */
if
(
punkOuter
==
NULL
&&
IsEqualGUID
(
&
IID_IDirectInput8A
,
riid
))
{
if
(
punkOuter
==
NULL
&&
IsEqualGUID
(
&
IID_IDirectInput8A
,
riid
))
{
LPDIRECTINPUTA
DI
=
(
LPDIRECTINPUTA
)
*
ppDI
;
LPDIRECTINPUTA
DI
=
*
ppDI
;
IDirectInput8_Initialize
(
DI
,
hinst
,
dwVersion
);
IDirectInput8_Initialize
(
DI
,
hinst
,
dwVersion
);
}
}
if
(
punkOuter
==
NULL
&&
IsEqualGUID
(
&
IID_IDirectInput8W
,
riid
))
{
if
(
punkOuter
==
NULL
&&
IsEqualGUID
(
&
IID_IDirectInput8W
,
riid
))
{
LPDIRECTINPUTW
DI
=
(
LPDIRECTINPUTW
)
*
ppDI
;
LPDIRECTINPUTW
DI
=
*
ppDI
;
IDirectInput8_Initialize
(
DI
,
hinst
,
dwVersion
);
IDirectInput8_Initialize
(
DI
,
hinst
,
dwVersion
);
}
}
...
@@ -159,7 +159,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
...
@@ -159,7 +159,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
{
TRACE
(
"(%s,%s,%p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%s,%s,%p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
&
IID_IClassFactory
,
riid
)
)
{
if
(
IsEqualCLSID
(
&
IID_IClassFactory
,
riid
)
)
{
*
ppv
=
(
LPVOID
)
&
DINPUT8_CF
;
*
ppv
=
&
DINPUT8_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
return
S_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