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
f5ecdbc3
Commit
f5ecdbc3
authored
Nov 27, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: The group for a track in a segment cannot be zero.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6773179a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
segment.c
dlls/dmime/segment.c
+6
-3
No files found.
dlls/dmime/segment.c
View file @
f5ecdbc3
...
...
@@ -235,7 +235,7 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_GetTrackGroup(IDirectMusicSegment
}
static
HRESULT
WINAPI
IDirectMusicSegment8Impl_InsertTrack
(
IDirectMusicSegment8
*
iface
,
IDirectMusicTrack
*
pTrack
,
DWORD
dwGroupBits
)
IDirectMusicTrack
*
pTrack
,
DWORD
group
)
{
IDirectMusicSegment8Impl
*
This
=
impl_from_IDirectMusicSegment8
(
iface
);
DWORD
i
=
0
;
...
...
@@ -243,7 +243,10 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_InsertTrack(IDirectMusicSegment8
LPDMUS_PRIVATE_SEGMENT_TRACK
pIt
=
NULL
;
LPDMUS_PRIVATE_SEGMENT_TRACK
pNewSegTrack
=
NULL
;
TRACE
(
"(%p, %p, %#x)
\n
"
,
This
,
pTrack
,
dwGroupBits
);
TRACE
(
"(%p, %p, %#x)
\n
"
,
This
,
pTrack
,
group
);
if
(
!
group
)
return
E_INVALIDARG
;
LIST_FOR_EACH
(
pEntry
,
&
This
->
Tracks
)
{
i
++
;
...
...
@@ -259,7 +262,7 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_InsertTrack(IDirectMusicSegment8
if
(
NULL
==
pNewSegTrack
)
return
E_OUTOFMEMORY
;
pNewSegTrack
->
dwGroupBits
=
dwGroupBits
;
pNewSegTrack
->
dwGroupBits
=
group
;
pNewSegTrack
->
pTrack
=
pTrack
;
IDirectMusicTrack_Init
(
pTrack
,
(
IDirectMusicSegment
*
)
iface
);
IDirectMusicTrack_AddRef
(
pTrack
);
...
...
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