The Technomancer - missing mfplat.dll.MFCreateAttributes

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Keyhaku
Newbie
Newbie
Posts: 1
Joined: Sun Apr 09, 2017 12:27 pm

The Technomancer - missing mfplat.dll.MFCreateAttributes

Post by Keyhaku »

Hello,

I'm trying to play The Technomancer,

It seems he needs the function MFCreateAttributes from mfplat.dll, but it seems unimplemented.

Yet, I configured wine graphically to overidde mfplat.dll, but it still doesn't work ... (how can I be sure I override it well ?)

Is there a way I can check if this function is implemented or not ?
Or else how can I install Windows Media Feature Pack ?

Thanks for your help,
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: The Technomancer - missing mfplat.dll.MFCreateAttributes

Post by qwertymnb »

If you know how to compile wine, could you try if the patch below works?

Code: Select all

diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 698c681..dd14216 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -64,6 +64,15 @@ HRESULT WINAPI MFShutdown(void)
     return S_OK;
 }
 
+/***********************************************************************
+ *      MFMFCreateAttributes (mfplat.@)
+ */
+HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size)
+{
+    FIXME("(%p, %d): stub\n", attributes, size);
+    return E_NOTIMPL;
+}
+
 static HRESULT WINAPI MFPluginControl_QueryInterface(IMFPluginControl *iface, REFIID riid, void **ppv)
 {
     if(IsEqualGUID(riid, &IID_IUnknown)) {
diff --git a/include/mfapi.h b/include/mfapi.h
index 554d8cf..5219ce1 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);
DarkPlayer
Level 2
Level 2
Posts: 23
Joined: Sun Mar 13, 2016 11:15 am

Re: The Technomancer - missing mfplat.dll.MFCreateAttributes

Post by DarkPlayer »

The patch won't have any effect until you change the MFCreateAttributes entry in mfplat.spec.
Locked