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
868ad7dc
Commit
868ad7dc
authored
Jan 30, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: COM cleanup for IDirectMusicBand.
parent
0d94b4b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
band.c
dlls/dmband/band.c
+14
-9
dmband_private.h
dlls/dmband/dmband_private.h
+1
-1
No files found.
dlls/dmband/band.c
View file @
868ad7dc
...
...
@@ -26,6 +26,11 @@ WINE_DECLARE_DEBUG_CHANNEL(dmfile);
/*****************************************************************************
* IDirectMusicBandImpl implementation
*/
static
inline
IDirectMusicBandImpl
*
impl_from_IDirectMusicBand
(
IDirectMusicBand
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicBandImpl
,
IDirectMusicBand_iface
);
}
/* IDirectMusicBandImpl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicBandImpl_IUnknown_QueryInterface
(
LPUNKNOWN
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
UnknownVtbl
,
iface
);
...
...
@@ -36,7 +41,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_IUnknown_QueryInterface (LPUNKNOWN if
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicBand
))
{
*
ppobj
=
&
This
->
BandVtbl
;
*
ppobj
=
&
This
->
IDirectMusicBand_iface
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicObject
))
{
...
...
@@ -89,26 +94,26 @@ static const IUnknownVtbl DirectMusicBand_Unknown_Vtbl = {
static
HRESULT
WINAPI
IDirectMusicBandImpl_QueryInterface
(
IDirectMusicBand
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
return
IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
static
ULONG
WINAPI
IDirectMusicBandImpl_AddRef
(
IDirectMusicBand
*
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
return
IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
static
ULONG
WINAPI
IDirectMusicBandImpl_Release
(
IDirectMusicBand
*
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
return
IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
static
HRESULT
WINAPI
IDirectMusicBandImpl_CreateSegment
(
IDirectMusicBand
*
iface
,
IDirectMusicSegment
**
ppSegment
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
ppSegment
);
return
S_OK
;
}
...
...
@@ -116,7 +121,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface
static
HRESULT
WINAPI
IDirectMusicBandImpl_Download
(
IDirectMusicBand
*
iface
,
IDirectMusicPerformance
*
pPerformance
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pPerformance
);
return
S_OK
;
}
...
...
@@ -124,12 +129,12 @@ static HRESULT WINAPI IDirectMusicBandImpl_Download(IDirectMusicBand *iface,
static
HRESULT
WINAPI
IDirectMusicBandImpl_Unload
(
IDirectMusicBand
*
iface
,
IDirectMusicPerformance
*
pPerformance
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
BandVtbl
,
iface
);
IDirectMusicBandImpl
*
This
=
impl_from_IDirectMusicBand
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pPerformance
);
return
S_OK
;
}
static
const
IDirectMusicBandVtbl
DirectMusicBand_Band_V
tbl
=
{
static
const
IDirectMusicBandVtbl
dmband_v
tbl
=
{
IDirectMusicBandImpl_QueryInterface
,
IDirectMusicBandImpl_AddRef
,
IDirectMusicBandImpl_Release
,
...
...
@@ -707,7 +712,7 @@ HRESULT WINAPI create_dmband(REFIID lpcGUID, void **ppobj)
return
E_OUTOFMEMORY
;
}
obj
->
UnknownVtbl
=
&
DirectMusicBand_Unknown_Vtbl
;
obj
->
BandVtbl
=
&
DirectMusicBand_Band_V
tbl
;
obj
->
IDirectMusicBand_iface
.
lpVtbl
=
&
dmband_v
tbl
;
obj
->
ObjectVtbl
=
&
DirectMusicBand_Object_Vtbl
;
obj
->
PersistStreamVtbl
=
&
DirectMusicBand_PersistStream_Vtbl
;
obj
->
pDesc
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DMUS_OBJECTDESC
));
...
...
dlls/dmband/dmband_private.h
View file @
868ad7dc
...
...
@@ -88,7 +88,7 @@ typedef struct _DMUS_PRIVATE_BAND {
struct
IDirectMusicBandImpl
{
/* IUnknown fields */
const
IUnknownVtbl
*
UnknownVtbl
;
const
IDirectMusicBandVtbl
*
BandVtbl
;
IDirectMusicBand
IDirectMusicBand_iface
;
const
IDirectMusicObjectVtbl
*
ObjectVtbl
;
const
IPersistStreamVtbl
*
PersistStreamVtbl
;
LONG
ref
;
...
...
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