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
5861f8c5
Commit
5861f8c5
authored
Sep 28, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.mediacontrol: Implement IMusicDisplayProperties2::get/put_AlbumTitle().
Called by Roon.
parent
e99cf458
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
main.c
dlls/windows.media.mediacontrol/main.c
+8
-4
mediacontrol.c
dlls/windows.media.mediacontrol/tests/mediacontrol.c
+5
-5
No files found.
dlls/windows.media.mediacontrol/main.c
View file @
5861f8c5
...
...
@@ -123,6 +123,7 @@ struct music_properties
IMusicDisplayProperties2
IMusicDisplayProperties2_iface
;
LONG
ref
;
HSTRING
album_title
;
HSTRING
artist
;
HSTRING
title
;
};
...
...
@@ -266,14 +267,17 @@ DEFINE_IINSPECTABLE( music_properties2, IMusicDisplayProperties2, struct music_p
static
HRESULT
STDMETHODCALLTYPE
music_properties2_get_AlbumTitle
(
IMusicDisplayProperties2
*
iface
,
HSTRING
*
value
)
{
FIXME
(
"iface %p, value %p stub
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
struct
music_properties
*
impl
=
impl_from_IMusicDisplayProperties2
(
iface
);
TRACE
(
"iface %p, value %p
\n
"
,
iface
,
value
);
return
WindowsDuplicateString
(
impl
->
album_title
,
value
);
}
static
HRESULT
STDMETHODCALLTYPE
music_properties2_put_AlbumTitle
(
IMusicDisplayProperties2
*
iface
,
HSTRING
value
)
{
FIXME
(
"iface %p, value %s stub
\n
"
,
iface
,
debugstr_hstring
(
value
)
);
return
E_NOTIMPL
;
struct
music_properties
*
impl
=
impl_from_IMusicDisplayProperties2
(
iface
);
TRACE
(
"iface %p, value %p
\n
"
,
iface
,
value
);
WindowsDeleteString
(
impl
->
album_title
);
return
WindowsDuplicateString
(
value
,
&
impl
->
album_title
);
}
static
HRESULT
STDMETHODCALLTYPE
music_properties2_get_TrackNumber
(
IMusicDisplayProperties2
*
iface
,
UINT32
*
value
)
...
...
dlls/windows.media.mediacontrol/tests/mediacontrol.c
View file @
5861f8c5
...
...
@@ -212,17 +212,17 @@ static void test_MediaControlStatics(void)
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_put_AlbumTitle
(
music_properties2
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateStringReference
(
L"Wine Hits"
,
wcslen
(
L"Wine Hits"
),
&
header
,
&
str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_put_AlbumTitle
(
music_properties2
,
str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IMusicDisplayProperties2_get_AlbumTitle
(
music_properties2
,
&
ret_str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
ret_str
,
&
res
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
res
,
"got string %s.
\n
"
,
debugstr_hstring
(
ret_str
)
);
todo_wine
ok
(
str
!=
ret_str
,
"got same HSTRINGs %p, %p.
\n
"
,
str
,
ret_str
);
ok
(
!
res
,
"got string %s.
\n
"
,
debugstr_hstring
(
ret_str
)
);
ok
(
str
!=
ret_str
,
"got same HSTRINGs %p, %p.
\n
"
,
str
,
ret_str
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
ret_str
);
...
...
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