[PATCH] mfplat: Add MFCreateAttributes stub
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Wed Apr 19 05:57:16 CDT 2017
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/mfplat/main.c | 9 +++++++++
dlls/mfplat/mfplat.spec | 2 +-
include/mfapi.h | 1 +
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 698c681e38..a4fbec792d 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -157,3 +157,12 @@ HRESULT WINAPI MFGetPluginControl(IMFPluginControl **ret)
*ret = &plugin_control;
return S_OK;
}
+
+/***********************************************************************
+ * MFMFCreateAttributes (mfplat.@)
+ */
+HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size)
+{
+ FIXME("(%p, %d): stub\n", attributes, size);
+ return E_NOTIMPL;
+}
diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec
index 0b402b70d9..9c96f4364d 100644
--- a/dlls/mfplat/mfplat.spec
+++ b/dlls/mfplat/mfplat.spec
@@ -39,7 +39,7 @@
@ stub MFCreateAMMediaTypeFromMFMediaType
@ stub MFCreateAlignedMemoryBuffer
@ stub MFCreateAsyncResult
-@ stub MFCreateAttributes
+@ stdcall MFCreateAttributes(ptr long)
@ stub MFCreateAudioMediaType
@ stub MFCreateCollection
@ stub MFCreateEventQueue
diff --git a/include/mfapi.h b/include/mfapi.h
index 554d8cf34f..5219ce1a45 100644
--- a/include/mfapi.h
+++ b/include/mfapi.h
@@ -30,6 +30,7 @@
typedef unsigned __int64 MFWORKITEM_KEY;
HRESULT WINAPI MFCancelWorkItem(MFWORKITEM_KEY key);
+HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size);
HRESULT WINAPI MFGetTimerPeriodicity(DWORD *periodicity);
HRESULT WINAPI MFLockPlatform(void);
HRESULT WINAPI MFShutdown(void);
--
2.11.0
More information about the wine-patches
mailing list