From 13861b7952684505fd4e850b2963926436b17b4a Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Sun, 18 Mar 2018 23:49:33 +0100 Subject: [PATCH] strmdll: Add stub dll. Signed-off-by: Stefan Leichter Signed-off-by: Alexandre Julliard --- 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(+) create mode 100644 dlls/strmdll/Makefile.in create mode 100644 dlls/strmdll/main.c create mode 100644 dlls/strmdll/strmdll.spec diff --git a/configure b/configure index 0ccf620b4e0..88ee44d9b13 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 51a3a79db26..b6c94a5a658 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 00000000000..429cd125d19 --- /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 00000000000..25bb5e2e07f --- /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 + +#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 00000000000..c50bcaa71af --- /dev/null +++ b/dlls/strmdll/strmdll.spec @@ -0,0 +1,5 @@ +@ stub CreateAsfFormatSet +@ stub NSSecurityLibraryInit +@ stub SelectCrabis +@ stub SelectHelper +@ stub SelectMediaStream