[PATCH 4/8] mfplat: Implement LockStore()/UnlockStore().
Nikolay Sivov
nsivov at codeweavers.com
Fri Mar 15 02:56:25 CDT 2019
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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 3f50d715c5..ea4387e9ae 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)
--
2.20.1
More information about the wine-devel
mailing list