Module: wine
Branch: master
Commit: 13861b7952684505fd4e850b2963926436b17b4a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=13861b7952684505fd4e850b…
Author: Stefan Leichter <sle85276(a)gmx.de>
Date: Sun Mar 18 23:49:33 2018 +0100
strmdll: Add stub dll.
Signed-off-by: Stefan Leichter <sle85276(a)gmx.de>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/strmdll/Makefile.in | 4 ++++
dlls/strmdll/main.c | 41 +++++++++++++++++++++++++++++++++++++++++
dlls/strmdll/strmdll.spec | 5 +++++
5 files changed, 53 insertions(+)
diff --git a/configure b/configure
index 0ccf620..88ee44d 100755
--- a/configure
+++ b/configure
@@ -1512,6 +1512,7 @@ enable_stdole2_tlb
enable_stdole32_tlb
enable_sti
enable_strmbase
+enable_strmdll
enable_strmiids
enable_svrapi
enable_sxs
@@ -19005,6 +19006,7 @@ wine_fn_config_makefile dlls/sti/tests enable_tests
wine_fn_config_makefile dlls/storage.dll16 enable_win16
wine_fn_config_makefile dlls/stress.dll16 enable_win16
wine_fn_config_makefile dlls/strmbase enable_strmbase
+wine_fn_config_makefile dlls/strmdll enable_strmdll
wine_fn_config_makefile dlls/strmiids enable_strmiids
wine_fn_config_makefile dlls/svrapi enable_svrapi
wine_fn_config_makefile dlls/sxs enable_sxs
diff --git a/configure.ac b/configure.ac
index 51a3a79..b6c94a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3631,6 +3631,7 @@ WINE_CONFIG_MAKEFILE(dlls/sti/tests)
WINE_CONFIG_MAKEFILE(dlls/storage.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/stress.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/strmbase)
+WINE_CONFIG_MAKEFILE(dlls/strmdll)
WINE_CONFIG_MAKEFILE(dlls/strmiids)
WINE_CONFIG_MAKEFILE(dlls/svrapi)
WINE_CONFIG_MAKEFILE(dlls/sxs)
diff --git a/dlls/strmdll/Makefile.in b/dlls/strmdll/Makefile.in
new file mode 100644
index 0000000..429cd12
--- /dev/null
+++ b/dlls/strmdll/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = strmdll.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/strmdll/main.c b/dlls/strmdll/main.c
new file mode 100644
index 0000000..25bb5e2
--- /dev/null
+++ b/dlls/strmdll/main.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2018 Stefan Leichter
+ *
+ * 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"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(strmdll);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID lpv)
+{
+ TRACE("(%p, %d, %p)\n", hInstDLL, reason, lpv);
+
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ }
+ return TRUE;
+}
diff --git a/dlls/strmdll/strmdll.spec b/dlls/strmdll/strmdll.spec
new file mode 100644
index 0000000..c50bcaa
--- /dev/null
+++ b/dlls/strmdll/strmdll.spec
@@ -0,0 +1,5 @@
+@ stub CreateAsfFormatSet
+@ stub NSSecurityLibraryInit
+@ stub SelectCrabis
+@ stub SelectHelper
+@ stub SelectMediaStream