From 89ecba6c48bdb74595740b012c01d226c9d11595 Mon Sep 17 00:00:00 2001 From: Austin English Date: Wed, 10 Dec 2014 15:51:07 -0800 Subject: [PATCH] mfreadwrite: Add stub dll. --- configure | 2 ++ configure.ac | 1 + dlls/mfreadwrite/Makefile.in | 4 ++++ dlls/mfreadwrite/main.c | 38 +++++++++++++++++++++++++++++++ dlls/mfreadwrite/mfreadwrite.spec | 7 ++++++ 5 files changed, 52 insertions(+) create mode 100644 dlls/mfreadwrite/Makefile.in create mode 100644 dlls/mfreadwrite/main.c create mode 100644 dlls/mfreadwrite/mfreadwrite.spec diff --git a/configure b/configure index eebde014154..a9ee86fdc38 100755 --- a/configure +++ b/configure @@ -1097,6 +1097,7 @@ enable_mciqtz32 enable_mciseq enable_mciwave enable_mfplat +enable_mfreadwrite enable_mgmtapi enable_midimap enable_mlang @@ -17180,6 +17181,7 @@ wine_fn_config_dll mciqtz32 enable_mciqtz32 wine_fn_config_dll mciseq enable_mciseq wine_fn_config_dll mciwave enable_mciwave wine_fn_config_dll mfplat enable_mfplat +wine_fn_config_dll mfreadwrite enable_mfreadwrite wine_fn_config_dll mgmtapi enable_mgmtapi wine_fn_config_dll midimap enable_midimap wine_fn_config_dll mlang enable_mlang clean,implib diff --git a/configure.ac b/configure.ac index 9458b2b8513..de6d2ccedb0 100644 --- a/configure.ac +++ b/configure.ac @@ -3006,6 +3006,7 @@ WINE_CONFIG_DLL(mciqtz32) WINE_CONFIG_DLL(mciseq) WINE_CONFIG_DLL(mciwave) WINE_CONFIG_DLL(mfplat) +WINE_CONFIG_DLL(mfreadwrite) WINE_CONFIG_DLL(mgmtapi) WINE_CONFIG_DLL(midimap) WINE_CONFIG_DLL(mlang,,[clean,implib]) diff --git a/dlls/mfreadwrite/Makefile.in b/dlls/mfreadwrite/Makefile.in new file mode 100644 index 00000000000..7cf3a59f3f3 --- /dev/null +++ b/dlls/mfreadwrite/Makefile.in @@ -0,0 +1,4 @@ +MODULE = mfreadwrite.dll + +C_SRCS = \ + main.c diff --git a/dlls/mfreadwrite/main.c b/dlls/mfreadwrite/main.c new file mode 100644 index 00000000000..a72f634e02b --- /dev/null +++ b/dlls/mfreadwrite/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 + +#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/mfreadwrite/mfreadwrite.spec b/dlls/mfreadwrite/mfreadwrite.spec new file mode 100644 index 00000000000..1f9f30fd105 --- /dev/null +++ b/dlls/mfreadwrite/mfreadwrite.spec @@ -0,0 +1,7 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub MFCreateSinkWriterFromMediaSink +@ stub MFCreateSinkWriterFromURL +@ stub MFCreateSourceReaderFromByteStream +@ stub MFCreateSourceReaderFromMediaSource +@ stub MFCreateSourceReaderFromURL