From: Stefan Leichter Subject: [PATCH] strmdll: Add new stub dll Message-Id: Date: Sun, 18 Mar 2018 23:49:33 +0100 Fixes https://bugs.winehq.org/show_bug.cgi?id=43232 Signed-off-by: Stefan Leichter --- configure.ac | 1 + dlls/strmdll/Makefile.in | 4 ++++ dlls/strmdll/main.c | 41 +++++++++++++++++++++++++++++++++++++++++ dlls/strmdll/strmdll.spec | 5 +++++ 4 files changed, 51 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.ac b/configure.ac index 51a3a79db2..b6c94a5a65 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 0000000000..429cd125d1 --- /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 0000000000..25bb5e2e07 --- /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 0000000000..c50bcaa71a --- /dev/null +++ b/dlls/strmdll/strmdll.spec @@ -0,0 +1,5 @@ +@ stub CreateAsfFormatSet +@ stub NSSecurityLibraryInit +@ stub SelectCrabis +@ stub SelectHelper +@ stub SelectMediaStream