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
6ac784ee
Commit
6ac784ee
authored
Jun 15, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Pass the object instead of the iface to helpers.
parent
b7fb00e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
band.c
dlls/dmband/band.c
+14
-11
No files found.
dlls/dmband/band.c
View file @
6ac784ee
...
...
@@ -367,8 +367,9 @@ static HRESULT WINAPI IDirectMusicBandImpl_IPersistStream_IsDirty (LPPERSISTSTRE
return
S_FALSE
;
}
static
HRESULT
IDirectMusicBandImpl_IPersistStream_ParseInstrument
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
PersistStreamVtbl
,
iface
);
static
HRESULT
parse_instrument
(
IDirectMusicBandImpl
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
...
...
@@ -418,7 +419,8 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseInstrument (LPPERSISTSTR
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_REF_LIST
:
{
FIXME_
(
dmfile
)(
": DMRF (DM References) list
\n
"
);
hr
=
IDirectMusicUtils_IPersistStream_ParseReference
(
iface
,
&
Chunk
,
pStm
,
&
pObject
);
hr
=
IDirectMusicUtils_IPersistStream_ParseReference
((
IPersistStream
*
)
&
This
->
PersistStreamVtbl
,
&
Chunk
,
pStm
,
&
pObject
);
if
(
FAILED
(
hr
))
{
ERR
(
": could not load Reference
\n
"
);
return
hr
;
...
...
@@ -471,8 +473,9 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseInstrument (LPPERSISTSTR
return
S_OK
;
}
static
HRESULT
IDirectMusicBandImpl_IPersistStream_ParseInstrumentsList
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
/*ICOM_THIS_MULTI(IDirectMusicBandImpl, PersistStreamVtbl, iface);*/
static
HRESULT
parse_instruments_list
(
IDirectMusicBandImpl
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
HRESULT
hr
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
...
...
@@ -499,7 +502,7 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseInstrumentsList (LPPERSI
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_INSTRUMENT_LIST
:
{
TRACE_
(
dmfile
)(
": Instrument list
\n
"
);
hr
=
IDirectMusicBandImpl_IPersistStream_ParseInstrument
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_instrument
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
@@ -525,9 +528,9 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseInstrumentsList (LPPERSI
return
S_OK
;
}
static
HRESULT
IDirectMusicBandImpl_IPersistStream_ParseBandForm
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicBandImpl
,
PersistStreamVtbl
,
iface
);
static
HRESULT
parse_band_form
(
IDirectMusicBandImpl
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
HRESULT
hr
=
E_FAIL
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
StreamSize
,
StreamCount
,
ListSize
[
3
],
ListCount
[
3
];
...
...
@@ -591,7 +594,7 @@ static HRESULT IDirectMusicBandImpl_IPersistStream_ParseBandForm (LPPERSISTSTREA
}
case
DMUS_FOURCC_INSTRUMENTS_LIST
:
{
TRACE_
(
dmfile
)(
": INSTRUMENTS list
\n
"
);
hr
=
IDirectMusicBandImpl_IPersistStream_ParseInstrumentsList
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_instruments_list
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
@@ -636,7 +639,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_IPersistStream_Load (LPPERSISTSTREAM
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_BAND_FORM
:
{
TRACE_
(
dmfile
)(
": Band form
\n
"
);
hr
=
IDirectMusicBandImpl_IPersistStream_ParseBandForm
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_band_form
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
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