[PATCH 3/6] mfplat: Forward CopyAllItems() for media type as well.

Nikolay Sivov nsivov at codeweavers.com
Fri Mar 8 00:57:43 CST 2019


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mfplat/mediatype.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/mfplat/mediatype.c b/dlls/mfplat/mediatype.c
index 7470d400a0..974ab3aba3 100644
--- a/dlls/mfplat/mediatype.c
+++ b/dlls/mfplat/mediatype.c
@@ -302,9 +302,8 @@ static HRESULT WINAPI mediatype_GetItemByIndex(IMFMediaType *iface, UINT32 index
 
 static HRESULT WINAPI mediatype_CopyAllItems(IMFMediaType *iface, IMFAttributes *dest)
 {
-    FIXME("%p, %p.\n", iface, dest);
-
-    return E_NOTIMPL;
+    struct media_type *media_type = impl_from_IMFMediaType(iface);
+    return IMFAttributes_CopyAllItems(&media_type->attributes.IMFAttributes_iface, dest);
 }
 
 static HRESULT WINAPI mediatype_GetMajorType(IMFMediaType *iface, GUID *guid)
-- 
2.20.1




More information about the wine-devel mailing list