Nikolay Sivov : mfplay: Add stub dll.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 15:10:34 CST 2019


Module: wine
Branch: master
Commit: 5dcb329667e3d4e630a7b3723f2eaee31652a568
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5dcb329667e3d4e630a7b3723f2eaee31652a568

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Feb 25 10:14:47 2019 +0300

mfplay: Add stub dll.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure               |  2 ++
 configure.ac            |  1 +
 dlls/mfplay/Makefile.in |  4 ++++
 dlls/mfplay/mfplay.spec |  6 ++++++
 dlls/mfplay/player.c    | 36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 49 insertions(+)

diff --git a/configure b/configure
index 166ddbf..6eec5f1 100755
--- a/configure
+++ b/configure
@@ -1371,6 +1371,7 @@ enable_mciwave
 enable_mf
 enable_mf3216
 enable_mfplat
+enable_mfplay
 enable_mfreadwrite
 enable_mfuuid
 enable_mgmtapi
@@ -19714,6 +19715,7 @@ wine_fn_config_makefile dlls/mf/tests enable_tests
 wine_fn_config_makefile dlls/mf3216 enable_mf3216
 wine_fn_config_makefile dlls/mfplat enable_mfplat
 wine_fn_config_makefile dlls/mfplat/tests enable_tests
+wine_fn_config_makefile dlls/mfplay enable_mfplay
 wine_fn_config_makefile dlls/mfreadwrite enable_mfreadwrite
 wine_fn_config_makefile dlls/mfreadwrite/tests enable_tests
 wine_fn_config_makefile dlls/mfuuid enable_mfuuid
diff --git a/configure.ac b/configure.ac
index f11a452..8d3475a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3442,6 +3442,7 @@ WINE_CONFIG_MAKEFILE(dlls/mf/tests)
 WINE_CONFIG_MAKEFILE(dlls/mf3216)
 WINE_CONFIG_MAKEFILE(dlls/mfplat)
 WINE_CONFIG_MAKEFILE(dlls/mfplat/tests)
+WINE_CONFIG_MAKEFILE(dlls/mfplay)
 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
 WINE_CONFIG_MAKEFILE(dlls/mfuuid)
diff --git a/dlls/mfplay/Makefile.in b/dlls/mfplay/Makefile.in
new file mode 100644
index 0000000..1ecf743
--- /dev/null
+++ b/dlls/mfplay/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = mfplay.dll
+
+C_SRCS = \
+	player.c
diff --git a/dlls/mfplay/mfplay.spec b/dlls/mfplay/mfplay.spec
new file mode 100644
index 0000000..964b90a
--- /dev/null
+++ b/dlls/mfplay/mfplay.spec
@@ -0,0 +1,6 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
+@ stub MFPCreateMediaPlayer
+@ stub MFPCreateMediaPlayerEx
diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
new file mode 100644
index 0000000..8873f52
--- /dev/null
+++ b/dlls/mfplay/player.c
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2019 Nikolay Sivov for CodeWeavers
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}




More information about the wine-cvs mailing list