[PATCH 4/5] wmp: Implement IWMPPlaylist::[get|put]_name.

Gijs Vermeulen gijsvrm at codeweavers.com
Sat Aug 3 10:45:57 CDT 2019


Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
---
 dlls/wmp/player.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/dlls/wmp/player.c b/dlls/wmp/player.c
index f8467605c8..03a7d26003 100644
--- a/dlls/wmp/player.c
+++ b/dlls/wmp/player.c
@@ -2049,15 +2049,22 @@ static HRESULT WINAPI WMPPlaylist_get_count(IWMPPlaylist *iface, LONG *count)
 static HRESULT WINAPI WMPPlaylist_get_name(IWMPPlaylist *iface, BSTR *name)
 {
     WMPPlaylist *This = impl_from_IWMPPlaylist(iface);
-    FIXME("(%p)->(%p)\n", This, name);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%p)\n", This, name);
+
+    return return_bstr(This->name, name);
 }
 
 static HRESULT WINAPI WMPPlaylist_put_name(IWMPPlaylist *iface, BSTR name)
 {
     WMPPlaylist *This = impl_from_IWMPPlaylist(iface);
-    FIXME("(%p)->(%s)\n", This, debugstr_w(name));
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%s)\n", This, debugstr_w(name));
+
+    if (!name) return E_POINTER;
+
+    This->name = heap_strdupW(name);
+    return S_OK;
 }
 
 static HRESULT WINAPI WMPPlaylist_get_attributeCount(IWMPPlaylist *iface, LONG *count)
-- 
2.22.0




More information about the wine-devel mailing list