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
ae6fb751
Commit
ae6fb751
authored
Apr 24, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Cleanup IDirectMusicBufferImpl_QueryInterface.
parent
76a778be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
buffer.c
dlls/dmusic/buffer.c
+16
-11
No files found.
dlls/dmusic/buffer.c
View file @
ae6fb751
...
...
@@ -27,18 +27,23 @@ static inline IDirectMusicBufferImpl *impl_from_IDirectMusicBuffer(IDirectMusicB
}
/* IDirectMusicBufferImpl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicBufferImpl_QueryInterface
(
LPDIRECTMUSICBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IDirectMusicBufferImpl_QueryInterface
(
LPDIRECTMUSICBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
{
IDirectMusicBufferImpl
*
This
=
impl_from_IDirectMusicBuffer
(
iface
);
TRACE
(
"(%p, (%s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDirectMusicBuffer
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
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_IDirectMusicBuffer
))
{
IDirectMusicBuffer_AddRef
(
iface
);
*
ret_iface
=
iface
;
return
S_OK
;
}
*
ret_iface
=
NULL
;
WARN
(
"(%p)->(%s, %p): not found
\n
"
,
iface
,
debugstr_dmguid
(
riid
),
ret_iface
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
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