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
ce275f38
Commit
ce275f38
authored
Nov 26, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: Implement IDirectMusicStyle8_EnumMotif().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e4e3c0b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
5 deletions
+30
-5
style.c
dlls/dmstyle/style.c
+30
-5
No files found.
dlls/dmstyle/style.c
View file @
ce275f38
...
...
@@ -158,12 +158,37 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultBand(IDirectMusicStyle8 *
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicStyle8Impl_EnumMotif
(
IDirectMusicStyle8
*
iface
,
DWORD
dwI
ndex
,
WCHAR
*
pwszN
ame
)
static
HRESULT
WINAPI
IDirectMusicStyle8Impl_EnumMotif
(
IDirectMusicStyle8
*
iface
,
DWORD
i
ndex
,
WCHAR
*
n
ame
)
{
IDirectMusicStyle8Impl
*
This
=
impl_from_IDirectMusicStyle8
(
iface
);
FIXME
(
"(%p, %d, %p): stub
\n
"
,
This
,
dwIndex
,
pwszName
);
return
S_OK
;
IDirectMusicStyle8Impl
*
This
=
impl_from_IDirectMusicStyle8
(
iface
);
const
struct
style_motif
*
motif
=
NULL
;
const
struct
list
*
cursor
;
unsigned
int
i
=
0
;
TRACE
(
"(%p, %u, %p)
\n
"
,
This
,
index
,
name
);
if
(
!
name
)
return
E_POINTER
;
/* index is zero based */
LIST_FOR_EACH
(
cursor
,
&
This
->
motifs
)
{
if
(
i
==
index
)
{
motif
=
LIST_ENTRY
(
cursor
,
struct
style_motif
,
entry
);
break
;
}
i
++
;
}
if
(
!
motif
)
return
S_FALSE
;
if
(
motif
->
desc
.
dwValidData
&
DMUS_OBJ_NAME
)
lstrcpynW
(
name
,
motif
->
desc
.
wszName
,
DMUS_MAX_NAME
);
else
name
[
0
]
=
0
;
TRACE
(
"returning name: %s
\n
"
,
debugstr_w
(
name
));
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicStyle8Impl_GetMotif
(
IDirectMusicStyle8
*
iface
,
WCHAR
*
pwszName
,
...
...
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