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
2024e241
Commit
2024e241
authored
May 24, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Cleanup IDirectMusic8Impl_QueryInterface.
parent
7c78cf2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
dmusic.c
dlls/dmusic/dmusic.c
+19
-14
No files found.
dlls/dmusic/dmusic.c
View file @
2024e241
...
...
@@ -31,22 +31,27 @@ static inline IDirectMusic8Impl *impl_from_IDirectMusic8(IDirectMusic8 *iface)
}
/* IDirectMusic8Impl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusic8Impl_QueryInterface
(
LPDIRECTMUSIC8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IDirectMusic8Impl_QueryInterface
(
LPDIRECTMUSIC8
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
{
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic2
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
return
E_NOINTERFACE
;
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_dmguid
(
riid
),
ret_iface
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic2
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusic8
))
{
IDirectMusic8_AddRef
(
iface
);
*
ret_iface
=
iface
;
return
S_OK
;
}
*
ret_iface
=
NULL
;
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ret_iface
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectMusic8Impl_AddRef
(
LPDIRECTMUSIC8
iface
)
...
...
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