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
040b3989
Commit
040b3989
authored
Jul 01, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: Pass objects instead of ifaces to helpers.
parent
098efa1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
chordtrack.c
dlls/dmstyle/chordtrack.c
+4
-4
styletrack.c
dlls/dmstyle/styletrack.c
+10
-8
No files found.
dlls/dmstyle/chordtrack.c
View file @
040b3989
...
...
@@ -277,9 +277,9 @@ static HRESULT WINAPI IDirectMusicChordTrack_IPersistStream_IsDirty (LPPERSISTST
return
S_FALSE
;
}
static
HRESULT
IDirectMusicChordTrack_IPersistStream_ParseChordTrackList
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicChordTrack
,
PersistStreamVtbl
,
iface
);
static
HRESULT
parse_chordtrack_list
(
IDirectMusicChordTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
...
...
@@ -371,7 +371,7 @@ static HRESULT WINAPI IDirectMusicChordTrack_IPersistStream_Load (LPPERSISTSTREA
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_CHORDTRACK_LIST
:
{
TRACE_
(
dmfile
)(
": Chord track list
\n
"
);
hr
=
IDirectMusicChordTrack_IPersistStream_ParseChordTrackList
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_chordtrack_list
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
dlls/dmstyle/styletrack.c
View file @
040b3989
...
...
@@ -279,8 +279,9 @@ static HRESULT WINAPI IDirectMusicStyleTrack_IPersistStream_IsDirty (LPPERSISTST
return
S_FALSE
;
}
static
HRESULT
IDirectMusicStyleTrack_IPersistStream_ParseStyleRef
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicStyleTrack
,
PersistStreamVtbl
,
iface
);
static
HRESULT
parse_style_ref
(
IDirectMusicStyleTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
...
...
@@ -325,7 +326,8 @@ static HRESULT IDirectMusicStyleTrack_IPersistStream_ParseStyleRef (LPPERSISTSTR
*/
case
DMUS_FOURCC_REF_LIST
:
{
FIXME_
(
dmfile
)(
": DMRF (DM References) list, not yet handled
\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
;
...
...
@@ -361,9 +363,9 @@ static HRESULT IDirectMusicStyleTrack_IPersistStream_ParseStyleRef (LPPERSISTSTR
return
S_OK
;
}
static
HRESULT
IDirectMusicStyleTrack_IPersistStream_ParseStyleTrackList
(
LPPERSISTSTREAM
iface
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
/*ICOM_THIS_MULTI(IDirectMusicStyleTrack, PersistStreamVtbl, iface);*/
static
HRESULT
parse_styletrack_list
(
IDirectMusicStyleTrack
*
This
,
DMUS_PRIVATE_CHUNK
*
pChunk
,
IStream
*
pStm
)
{
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
...
...
@@ -390,7 +392,7 @@ static HRESULT IDirectMusicStyleTrack_IPersistStream_ParseStyleTrackList (LPPERS
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_STYLE_REF_LIST
:
{
TRACE_
(
dmfile
)(
": STYLE_REF list
\n
"
);
hr
=
IDirectMusicStyleTrack_IPersistStream_ParseStyleRef
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_style_ref
(
This
,
&
Chunk
,
pStm
);
if
(
FAILED
(
hr
))
return
hr
;
break
;
}
...
...
@@ -434,7 +436,7 @@ static HRESULT WINAPI IDirectMusicStyleTrack_IPersistStream_Load (LPPERSISTSTREA
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_STYLE_TRACK_LIST
:
{
TRACE_
(
dmfile
)(
": Chord track list
\n
"
);
hr
=
IDirectMusicStyleTrack_IPersistStream_ParseStyleTrackList
(
iface
,
&
Chunk
,
pStm
);
hr
=
parse_styletrack_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