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
0bdc248c
Commit
0bdc248c
authored
Sep 15, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Rewrite segment IDirectMusicSegment_RemoveTrack.
parent
f04976e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
segment.c
dlls/dmime/segment.c
+9
-14
No files found.
dlls/dmime/segment.c
View file @
0bdc248c
...
...
@@ -285,24 +285,19 @@ static HRESULT WINAPI segment_InsertTrack(IDirectMusicSegment8 *iface, IDirectMu
return
segment_append_track
(
This
,
track
,
group
,
0
);
}
static
HRESULT
WINAPI
segment_RemoveTrack
(
IDirectMusicSegment8
*
iface
,
IDirectMusicTrack
*
pT
rack
)
static
HRESULT
WINAPI
segment_RemoveTrack
(
IDirectMusicSegment8
*
iface
,
IDirectMusicTrack
*
t
rack
)
{
struct
segment
*
This
=
impl_from_IDirectMusicSegment8
(
iface
);
struct
list
*
pEntry
=
NULL
;
struct
track_entry
*
pIt
=
NULL
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
pTrack
);
LIST_FOR_EACH
(
pEntry
,
&
This
->
tracks
)
{
pIt
=
LIST_ENTRY
(
pEntry
,
struct
track_entry
,
entry
);
if
(
pIt
->
pTrack
==
pTrack
)
{
TRACE
(
"(%p, %p): track in list
\n
"
,
This
,
pTrack
);
struct
track_entry
*
entry
;
list_remove
(
&
pIt
->
entry
);
IDirectMusicTrack_Init
(
pIt
->
pTrack
,
NULL
);
IDirectMusicTrack_Release
(
pIt
->
pTrack
);
free
(
pIt
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
track
);
LIST_FOR_EACH_ENTRY
(
entry
,
&
This
->
tracks
,
struct
track_entry
,
entry
)
{
if
(
entry
->
pTrack
==
track
)
{
list_remove
(
&
entry
->
entry
);
track_entry_destroy
(
entry
);
return
S_OK
;
}
}
...
...
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