Nikolay Sivov : mfplat: Implement LockStore()/UnlockStore().

Alexandre Julliard julliard at winehq.org
Fri Mar 15 15:20:01 CDT 2019


Module: wine
Branch: master
Commit: 3bbbb876faf3532a03f530da40a61422d9e62b9f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3bbbb876faf3532a03f530da40a61422d9e62b9f

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Mar 15 13:56:45 2019 +0300

mfplat: Implement LockStore()/UnlockStore().

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/main.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 3f50d71..ea4387e 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -1075,20 +1075,24 @@ static HRESULT WINAPI mfattributes_SetUnknown(IMFAttributes *iface, REFGUID key,
 
 static HRESULT WINAPI mfattributes_LockStore(IMFAttributes *iface)
 {
-    mfattributes *This = impl_from_IMFAttributes(iface);
+    struct attributes *attributes = impl_from_IMFAttributes(iface);
 
-    FIXME("%p\n", This);
+    TRACE("%p.\n", iface);
 
-    return E_NOTIMPL;
+    EnterCriticalSection(&attributes->cs);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI mfattributes_UnlockStore(IMFAttributes *iface)
 {
-    mfattributes *This = impl_from_IMFAttributes(iface);
+    struct attributes *attributes = impl_from_IMFAttributes(iface);
 
-    FIXME("%p\n", This);
+    TRACE("%p.\n", iface);
 
-    return E_NOTIMPL;
+    LeaveCriticalSection(&attributes->cs);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI mfattributes_GetCount(IMFAttributes *iface, UINT32 *items)




More information about the wine-cvs mailing list