mfreadwrite: add stub dll
Austin English
austinenglish at gmail.com
Wed Dec 10 17:54:21 CST 2014
For https://bugs.winehq.org/show_bug.cgi?id=35105 et al
--
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141210/c31e4bc3/attachment.html>
-------------- next part --------------
From 93dd537f818e906e5be48b114fa3ee9ca7b47e32 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 10 Dec 2014 15:51:07 -0800
Subject: [PATCH] mfreadwrite: add stub dll
---
configure.ac | 1 +
dlls/mfreadwrite/Makefile.in | 4 ++++
dlls/mfreadwrite/main.c | 38 ++++++++++++++++++++++++++++++++++++++
dlls/mfreadwrite/mfreadwrite.spec | 7 +++++++
4 files changed, 50 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.ac b/configure.ac
index dfd4393..4503a84 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 0000000..7cf3a59
--- /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 0000000..a72f634
--- /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 <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/mfreadwrite/mfreadwrite.spec b/dlls/mfreadwrite/mfreadwrite.spec
new file mode 100644
index 0000000..1f9f30f
--- /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
--
2.1.3
More information about the wine-patches
mailing list