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
3f0afe8e
Commit
3f0afe8e
authored
Dec 17, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmcompos: Return a valid pointer from ComposeSegmentFromTemplate().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53941
parent
c92d0101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
5 deletions
+31
-5
composer.c
dlls/dmcompos/composer.c
+31
-5
No files found.
dlls/dmcompos/composer.c
View file @
3f0afe8e
...
...
@@ -77,12 +77,38 @@ static ULONG WINAPI IDirectMusicComposerImpl_Release(IDirectMusicComposer *iface
/* IDirectMusicComposerImpl IDirectMusicComposer part: */
static
HRESULT
WINAPI
IDirectMusicComposerImpl_ComposeSegmentFromTemplate
(
IDirectMusicComposer
*
iface
,
IDirectMusicStyle
*
pStyle
,
IDirectMusicSegment
*
pTemplate
,
WORD
wActivity
,
IDirectMusic
ChordMap
*
pChordMap
,
IDirectMusicSegment
**
ppS
egment
)
IDirectMusicStyle
*
style
,
IDirectMusicSegment
*
template
,
WORD
activity
,
IDirectMusicChordMap
*
chordmap
,
IDirectMusic
Segment
**
s
egment
)
{
IDirectMusicComposerImpl
*
This
=
impl_from_IDirectMusicComposer
(
iface
);
FIXME
(
"(%p, %p, %p, %d, %p, %p): stub
\n
"
,
This
,
pStyle
,
pTemplate
,
wActivity
,
pChordMap
,
ppSegment
);
return
S_OK
;
IDirectMusicComposerImpl
*
This
=
impl_from_IDirectMusicComposer
(
iface
);
IDirectMusicTrack
*
track
;
HRESULT
hr
;
FIXME
(
"(%p, %p, %p, %d, %p, %p): semi-stub
\n
"
,
This
,
style
,
template
,
activity
,
chordmap
,
segment
);
if
(
!
segment
)
return
E_POINTER
;
if
(
!
template
)
return
E_INVALIDARG
;
if
(
!
style
)
{
hr
=
IDirectMusicSegment_GetTrack
(
template
,
&
CLSID_DirectMusicStyleTrack
,
0xFFFFFFFF
,
DMUS_SEG_ANYTRACK
,
&
track
);
if
(
FAILED
(
hr
))
return
E_INVALIDARG
;
else
IDirectMusicTrack_Release
(
track
);
/* Temp to not leak memory */
}
if
(
!
chordmap
)
{
hr
=
IDirectMusicSegment_GetTrack
(
template
,
&
CLSID_DirectMusicChordMapTrack
,
0xFFFFFFFF
,
DMUS_SEG_ANYTRACK
,
&
track
);
if
(
FAILED
(
hr
))
return
E_INVALIDARG
;
else
IDirectMusicTrack_Release
(
track
);
/* Temp to not leak memory */
}
return
IDirectMusicSegment_Clone
(
template
,
-
1
,
0
,
segment
);
}
static
HRESULT
WINAPI
IDirectMusicComposerImpl_ComposeSegmentFromShape
(
IDirectMusicComposer
*
iface
,
...
...
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