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
a2a2ea03
Commit
a2a2ea03
authored
Jul 01, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Pass objects instead of ifaces to helpers.
parent
40769b4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
segtriggertrack.c
dlls/dmime/segtriggertrack.c
+14
-10
No files found.
dlls/dmime/segtriggertrack.c
View file @
a2a2ea03
...
...
@@ -256,8 +256,9 @@ static HRESULT WINAPI IDirectMusicSegTriggerTrack_IPersistStream_IsDirty (LPPERS
return
S_FALSE
;
}
static
HRESULT
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegTriggerTrack
,
PersistStreamVtbl
,
iface
);
static
HRESULT
parse_segment
(
IDirectMusicSegTriggerTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
...
...
@@ -312,7 +313,8 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment (LPPERSIS
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
;
...
...
@@ -346,8 +348,9 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment (LPPERSIS
return
S_OK
;
}
static
HRESULT
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegmentsList
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
/*ICOM_THIS_MULTI(IDirectMusicSegTriggerTrack, PersistStreamVtbl, iface);*/
static
HRESULT
parse_segments_list
(
IDirectMusicSegTriggerTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
HRESULT
hr
=
E_FAIL
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
...
...
@@ -374,7 +377,7 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegmentsList (LPP
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_SEGMENT_LIST
:
{
TRACE_
(
dmfile
)(
": SEGMENT list
\n
"
);
hr
=
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegment
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_segment
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
@@ -400,8 +403,9 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegmentsList (LPP
return
S_OK
;
}
static
HRESULT
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegTrackList
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
/*ICOM_THIS_MULTI(IDirectMusicSegTriggerTrack, PersistStreamVtbl, iface);*/
static
HRESULT
parse_seqtrack_list
(
IDirectMusicSegTriggerTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
HRESULT
hr
=
E_FAIL
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
...
...
@@ -434,7 +438,7 @@ static HRESULT IDirectMusicSegTriggerTrack_IPersistStream_ParseSegTrackList (LPP
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_SEGMENTS_LIST
:
{
TRACE_
(
dmfile
)(
": SEGMENTS list
\n
"
);
hr
=
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegmentsList
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_segments_list
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
@@ -478,7 +482,7 @@ static HRESULT WINAPI IDirectMusicSegTriggerTrack_IPersistStream_Load (LPPERSIST
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_SEGTRACK_LIST
:
{
TRACE_
(
dmfile
)(
": segment trigger track list
\n
"
);
hr
=
IDirectMusicSegTriggerTrack_IPersistStream_ParseSegTrackList
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_seqtrack_list
(
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