Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- This allows Mary Skelter: Nightmares to launch.
dlls/mfplat/main.c | 9 +++++++++ dlls/mfplat/mfplat.spec | 2 +- include/mfidl.idl | 1 + 3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c index eec54ae3f6a..cee50acfde7 100644 --- a/dlls/mfplat/main.c +++ b/dlls/mfplat/main.c @@ -7415,3 +7415,12 @@ failed:
return hr; } + +/*********************************************************************** + * CreatePropertyStore (mfplat.@) + */ +HRESULT WINAPI CreatePropertyStore(IPropertyStore **store) +{ + TRACE("%p.\n", store); + return PSCreateMemoryPropertyStore(&IID_IPropertyStore, (void **)store); +} diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec index 1ae0927f513..2f16bbd1973 100644 --- a/dlls/mfplat/mfplat.spec +++ b/dlls/mfplat/mfplat.spec @@ -10,7 +10,7 @@ @ stub ValidateWaveFormat @ stub CopyPropVariant @ stub CreatePropVariant -@ stub CreatePropertyStore +@ stdcall CreatePropertyStore(ptr) @ stub DestroyPropVariant @ stub GetAMSubtypeFromD3DFormat @ stub GetD3DFormatFromMFSubtype diff --git a/include/mfidl.idl b/include/mfidl.idl index 1ed63bea126..5f8913384cc 100644 --- a/include/mfidl.idl +++ b/include/mfidl.idl @@ -566,6 +566,7 @@ interface IMFSampleGrabberSinkCallback2 : IMFSampleGrabberSinkCallback [in] IMFAttributes *attributes); }
+cpp_quote("HRESULT WINAPI CreatePropertyStore(IPropertyStore **store);") cpp_quote("HRESULT WINAPI MFCreateMediaSession(IMFAttributes *config, IMFMediaSession **session);") cpp_quote("HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **bytestream);" ) cpp_quote("HRESULT WINAPI MFCreateMFByteStreamOnStreamEx(IUnknown *stream, IMFByteStream **bytestream);")
As I remember instance returned here does not pass tests we have for propsys implementation, but I don't recall details. I was trying to find a suitable base for attributes implementation when I tested it. Could you duplicate those tests? Preferably replicating what this game is doing too.
On 7/12/19 2:26 PM, Nikolay Sivov wrote:
As I remember instance returned here does not pass tests we have for propsys implementation, but I don't recall details. I was trying to find a suitable base for attributes implementation when I tested it. Could you duplicate those tests? Preferably replicating what this game is doing too.
Sure, will do.