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
12d3ccb4
Commit
12d3ccb4
authored
Oct 12, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Only use index if group is set in IDirectMusicSegment_SetParam.
parent
e9fdbe4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
segment.c
dlls/dmime/segment.c
+5
-2
No files found.
dlls/dmime/segment.c
View file @
12d3ccb4
...
...
@@ -403,8 +403,11 @@ static HRESULT WINAPI segment_SetParam(IDirectMusicSegment8 *iface, REFGUID type
LIST_FOR_EACH_ENTRY
(
entry
,
&
This
->
tracks
,
struct
track_entry
,
entry
)
{
if
(
group
!=
-
1
&&
!
(
group
&
entry
->
dwGroupBits
))
continue
;
if
(
index
!=
DMUS_SEG_ALLTRACKS
&&
index
--
)
continue
;
if
(
group
!=
-
1
)
{
if
(
!
(
group
&
entry
->
dwGroupBits
))
continue
;
if
(
index
!=
DMUS_SEG_ALLTRACKS
&&
index
--
)
continue
;
}
hr
=
IDirectMusicTrack_IsParamSupported
(
entry
->
pTrack
,
type
);
if
(
hr
==
DMUS_E_TYPE_UNSUPPORTED
)
continue
;
...
...
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