mfplat: add stub dll

Austin English austinenglish at gmail.com
Mon Dec 8 19:37:09 CST 2014


https://bugs.winehq.org/show_bug.cgi?id=35105
https://bugs.winehq.org/show_bug.cgi?id=36938

I also saw this a while back in #winehq, but the affected application
wasn't named. That application sought a few more dlls:
err:module:import_dll Library dxva2.dll (which is needed by L"C:\\Program
Files\\program\\qtplugins\\mediaservice\\wmfengine.dll") not found
err:module:import_dll Library EVR.dll (which is needed by L"C:\\Program
Files\\program\\qtplugins\\mediaservice\\wmfengine.dll") not found
err:module:import_dll Library MF.dll (which is needed by L"C:\\Program
Files\\program\\qtplugins\\mediaservice\\wmfengine.dll") not found
err:module:import_dll Library MFPlat.DLL (which is needed by L"C:\\Program
Files\\program\\qtplugins\\mediaservice\\wmfengine.dll") not found
err:module:import_dll Library MFReadWrite.dll (which is needed by
L"C:\\Program Files\\program\\qtplugins\\mediaservice\\wmfengine.dll") not
found

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141208/953dcc26/attachment-0001.html>
-------------- next part --------------
From 972b14526a67d1934a5ad6e6b83c5881355d91c4 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 8 Dec 2014 17:36:19 -0800
Subject: [PATCH 1/1] mfplat: add stub dll

---
 configure.ac            |   1 +
 dlls/mfplat/Makefile.in |   4 ++
 dlls/mfplat/main.c      |  38 ++++++++++++
 dlls/mfplat/mfplat.spec | 156 ++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 199 insertions(+)
 create mode 100644 dlls/mfplat/Makefile.in
 create mode 100644 dlls/mfplat/main.c
 create mode 100644 dlls/mfplat/mfplat.spec

diff --git a/configure.ac b/configure.ac
index 99eadc9..6ac8555 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2995,6 +2995,7 @@ WINE_CONFIG_DLL(mcicda)
 WINE_CONFIG_DLL(mciqtz32)
 WINE_CONFIG_DLL(mciseq)
 WINE_CONFIG_DLL(mciwave)
+WINE_CONFIG_DLL(mfplat)
 WINE_CONFIG_DLL(mgmtapi)
 WINE_CONFIG_DLL(midimap)
 WINE_CONFIG_DLL(mlang,,[clean,implib])
diff --git a/dlls/mfplat/Makefile.in b/dlls/mfplat/Makefile.in
new file mode 100644
index 0000000..2b5bd24
--- /dev/null
+++ b/dlls/mfplat/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = mfplat.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
new file mode 100644
index 0000000..a72f634
--- /dev/null
+++ b/dlls/mfplat/main.c
@@ -0,0 +1,38 @@
+/*
+ *
+ * Copyright 2014 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec
new file mode 100644
index 0000000..98a7147
--- /dev/null
+++ b/dlls/mfplat/mfplat.spec
@@ -0,0 +1,156 @@
+@ stub FormatTagFromWfx
+@ stub MFCreateGuid
+@ stub MFGetIoPortHandle
+@ stub MFGetPlatformVersion
+@ stub MFGetRandomNumber
+@ stub MFIsFeatureEnabled
+@ stub MFIsQueueThread
+@ stub MFPlatformBigEndian
+@ stub MFPlatformLittleEndian
+@ stub ValidateWaveFormat
+@ stub CopyPropVariant
+@ stub CreatePropVariant
+@ stub CreatePropertyStore
+@ stub DestroyPropVariant
+@ stub GetAMSubtypeFromD3DFormat
+@ stub GetD3DFormatFromMFSubtype
+@ stub LFGetGlobalPool
+@ stub MFAddPeriodicCallback
+@ stub MFAllocateWorkQueue
+@ stub MFAllocateWorkQueueEx
+@ stub MFAppendCollection
+@ stub MFAverageTimePerFrameToFrameRate
+@ stub MFBeginCreateFile
+@ stub MFBeginGetHostByName
+@ stub MFBeginRegisterWorkQueueWithMMCSS
+@ stub MFBeginUnregisterWorkQueueWithMMCSS
+@ stub MFBlockThread
+@ stub MFCalculateBitmapImageSize
+@ stub MFCalculateImageSize
+@ stub MFCancelCreateFile
+@ stub MFCancelWorkItem
+@ stub MFCompareFullToPartialMediaType
+@ stub MFCompareSockaddrAddresses
+@ stub MFConvertColorInfoFromDXVA
+@ stub MFConvertColorInfoToDXVA
+@ stub MFConvertFromFP16Array
+@ stub MFConvertToFP16Array
+@ stub MFCopyImage
+@ stub MFCreateAMMediaTypeFromMFMediaType
+@ stub MFCreateAlignedMemoryBuffer
+@ stub MFCreateAsyncResult
+@ stub MFCreateAttributes
+@ stub MFCreateAudioMediaType
+@ stub MFCreateCollection
+@ stub MFCreateEventQueue
+@ stub MFCreateFile
+@ stub MFCreateLegacyMediaBufferOnMFMediaBuffer
+@ stub MFCreateMFByteStreamOnStream
+@ stub MFCreateMFVideoFormatFromMFMediaType
+@ stub MFCreateMediaBufferWrapper
+@ stub MFCreateMediaEvent
+@ stub MFCreateMediaType
+@ stub MFCreateMediaTypeFromRepresentation
+@ stub MFCreateMemoryBuffer
+@ stub MFCreateMemoryStream
+@ stub MFCreatePathFromURL
+@ stub MFCreatePresentationDescriptor
+@ stub MFCreateSample
+@ stub MFCreateSocket
+@ stub MFCreateSocketListener
+@ stub MFCreateSourceResolver
+@ stub MFCreateStreamDescriptor
+@ stub MFCreateSystemTimeSource
+@ stub MFCreateSystemUnderlyingClock
+@ stub MFCreateTempFile
+@ stub MFCreateTransformActivate
+@ stub MFCreateURLFromPath
+@ stub MFCreateUdpSockets
+@ stub MFCreateVideoMediaType
+@ stub MFCreateVideoMediaTypeFromBitMapInfoHeader
+@ stub MFCreateVideoMediaTypeFromBitMapInfoHeaderEx
+@ stub MFCreateVideoMediaTypeFromSubtype
+@ stub MFCreateVideoMediaTypeFromVideoInfoHeader2
+@ stub MFCreateVideoMediaTypeFromVideoInfoHeader
+@ stub MFCreateWaveFormatExFromMFMediaType
+@ stub MFDeserializeAttributesFromStream
+@ stub MFDeserializeEvent
+@ stub MFDeserializeMediaTypeFromStream
+@ stub MFDeserializePresentationDescriptor
+@ stub MFEndCreateFile
+@ stub MFEndGetHostByName
+@ stub MFEndRegisterWorkQueueWithMMCSS
+@ stub MFEndUnregisterWorkQueueWithMMCSS
+@ stub MFFrameRateToAverageTimePerFrame
+@ stub MFFreeAdaptersAddresses
+@ stub MFGetAdaptersAddresses
+@ stub MFGetAttributesAsBlob
+@ stub MFGetAttributesAsBlobSize
+@ stub MFGetConfigurationDWORD
+@ stub MFGetConfigurationPolicy
+@ stub MFGetConfigurationStore
+@ stub MFGetConfigurationString
+@ stub MFGetMFTMerit
+@ stub MFGetNumericNameFromSockaddr
+@ stub MFGetPlaneSize
+@ stub MFGetPlatform
+@ stub MFGetPluginControl
+@ stub MFGetPrivateWorkqueues
+@ stub MFGetSockaddrFromNumericName
+@ stub MFGetStrideForBitmapInfoHeader
+@ stub MFGetSystemTime
+@ stub MFGetTimerPeriodicity
+@ stub MFGetUncompressedVideoFormat
+@ stub MFGetWorkQueueMMCSSClass
+@ stub MFGetWorkQueueMMCSSTaskId
+@ stub MFHeapAlloc
+@ stub MFHeapFree
+@ stub MFInitAMMediaTypeFromMFMediaType
+@ stub MFInitAttributesFromBlob
+@ stub MFInitMediaTypeFromAMMediaType
+@ stub MFInitMediaTypeFromMFVideoFormat
+@ stub MFInitMediaTypeFromMPEG1VideoInfo
+@ stub MFInitMediaTypeFromMPEG2VideoInfo
+@ stub MFInitMediaTypeFromVideoInfoHeader2
+@ stub MFInitMediaTypeFromVideoInfoHeader
+@ stub MFInitMediaTypeFromWaveFormatEx
+@ stub MFInitVideoFormat
+@ stub MFInitVideoFormat_RGB
+@ stub MFInvokeCallback
+@ stub MFJoinIoPort
+@ stub MFLockPlatform
+@ stub MFLockWorkQueue
+@ stub MFPutWorkItem
+@ stub MFPutWorkItemEx
+@ stub MFRecordError
+@ stub MFRemovePeriodicCallback
+@ stub MFScheduleWorkItem
+@ stub MFScheduleWorkItemEx
+@ stub MFSerializeAttributesToStream
+@ stub MFSerializeEvent
+@ stub MFSerializeMediaTypeToStream
+@ stub MFSerializePresentationDescriptor
+@ stub MFSetSockaddrAny
+@ stub MFShutdown
+@ stub MFStartup
+@ stub MFStreamDescriptorProtectMediaType
+@ stub MFTEnum
+@ stub MFTEnumEx
+@ stub MFTGetInfo
+@ stub MFTRegister
+@ stub MFTRegisterLocal
+@ stub MFTRegisterLocalByCLSID
+@ stub MFTUnregister
+@ stub MFTUnregisterLocal
+@ stub MFTUnregisterLocalByCLSID
+@ stub MFTraceError
+@ stub MFTraceFuncEnter
+@ stub MFUnblockThread
+@ stub MFUnlockPlatform
+@ stub MFUnlockWorkQueue
+@ stub MFUnwrapMediaType
+@ stub MFValidateMediaTypeSize
+@ stub MFWrapMediaType
+@ stub MFllMulDiv
+@ stub PropVariantFromStream
+@ stub PropVariantToStream
-- 
2.1.3



More information about the wine-patches mailing list