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
f86b6e87
Commit
f86b6e87
authored
Dec 22, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Dec 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Fix IDirectMusicPortImpl_QueryInterface.
parent
cff39153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
port.c
dlls/dmusic/port.c
+15
-8
No files found.
dlls/dmusic/port.c
View file @
f86b6e87
...
...
@@ -23,18 +23,25 @@ WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
/* IDirectMusicPortImpl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicPortImpl_QueryInterface
(
LPDIRECTMUSICPORT
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectMusicPortImpl
*
This
=
(
IDirectMusicPortImpl
*
)
iface
;
ICOM_THIS_MULTI
(
IDirectMusicPortImpl
,
lpVtbl
,
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort8
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload8
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPort8
))
{
*
ppobj
=
&
This
->
lpVtbl
;
IDirectMusicPort_AddRef
((
LPDIRECTMUSICPORT
)
*
ppobj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicPortDownload8
))
{
*
ppobj
=
&
This
->
lpDownloadVtbl
;
IDirectMusicPortDownload_AddRef
((
LPDIRECTMUSICPORTDOWNLOAD
)
*
ppobj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectMusicThru8
))
{
*
ppobj
=
&
This
->
lpThruVtbl
;
IDirectMusicThru_AddRef
((
LPDIRECTMUSICTHRU
)
*
ppobj
);
return
S_OK
;
}
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
...
...
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