[PATCH 3/5] mf: Add RegisterMFTs() implementation.

Nikolay Sivov nsivov at codeweavers.com
Mon Oct 7 07:57:00 CDT 2019


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mf/session.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 5ed29c8525..7a49401d83 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -296,9 +296,21 @@ static ULONG WINAPI local_mft_registration_Release(IMFLocalMFTRegistration *ifac
 static HRESULT WINAPI local_mft_registration_RegisterMFTs(IMFLocalMFTRegistration *iface, MFT_REGISTRATION_INFO *info,
         DWORD count)
 {
-    FIXME("%p, %p, %u.\n", iface, info, count);
+    HRESULT hr = S_OK;
+    DWORD i;
 
-    return E_NOTIMPL;
+    TRACE("%p, %p, %u.\n", iface, info, count);
+
+    for (i = 0; i < count; ++i)
+    {
+        if (FAILED(hr = MFTRegisterLocalByCLSID(&info[i].clsid, &info[i].guidCategory, info[i].pszName,
+                info[i].uiFlags, info[i].cInTypes, info[i].pInTypes, info[i].cOutTypes, info[i].pOutTypes)))
+        {
+            break;
+        }
+    }
+
+    return hr;
 }
 
 static const IMFLocalMFTRegistrationVtbl local_mft_registration_vtbl =
-- 
2.23.0




More information about the wine-devel mailing list