Module: wine Branch: master Commit: 3bbbb876faf3532a03f530da40a61422d9e62b9f URL: https://source.winehq.org/git/wine.git/?a=commit;h=3bbbb876faf3532a03f530da4...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Mar 15 13:56:45 2019 +0300
mfplat: Implement LockStore()/UnlockStore().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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)