From ac15301b7f7b415f3a2b57a4b6f09b506f194cd2 Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 2 Feb 2013 05:15:03 +0100 Subject: [PATCH] windowscodecsext: Add a stub dll. --- configure | 1 + configure.ac | 1 + dlls/windowscodecsext/Makefile.in | 6 ++++ dlls/windowscodecsext/main.c | 47 +++++++++++++++++++++++++++++ dlls/windowscodecsext/windowscodecsext.spec | 3 ++ 5 files changed, 58 insertions(+) create mode 100644 dlls/windowscodecsext/Makefile.in create mode 100644 dlls/windowscodecsext/main.c create mode 100644 dlls/windowscodecsext/windowscodecsext.spec diff --git a/configure b/configure index e3253eef1e1..c5fabbad079 100755 --- a/configure +++ b/configure @@ -16184,6 +16184,7 @@ wine_fn_config_dll winaspi.dll16 enable_win16 wine_fn_config_dll windebug.dll16 enable_win16 wine_fn_config_dll windowscodecs enable_windowscodecs implib wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test +wine_fn_config_dll windowscodecsext enable_windowscodecsext wine_fn_config_dll winealsa.drv enable_winealsa_drv wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv wine_fn_config_lib winecrt0 diff --git a/configure.ac b/configure.ac index c93cd082087..012228cb255 100644 --- a/configure.ac +++ b/configure.ac @@ -3068,6 +3068,7 @@ WINE_CONFIG_DLL(winaspi.dll16,enable_win16) WINE_CONFIG_DLL(windebug.dll16,enable_win16) WINE_CONFIG_DLL(windowscodecs,,[implib]) WINE_CONFIG_TEST(dlls/windowscodecs/tests) +WINE_CONFIG_DLL(windowscodecsext) WINE_CONFIG_DLL(winealsa.drv) WINE_CONFIG_DLL(winecoreaudio.drv) WINE_CONFIG_LIB(winecrt0) diff --git a/dlls/windowscodecsext/Makefile.in b/dlls/windowscodecsext/Makefile.in new file mode 100644 index 00000000000..de6d06c0b0d --- /dev/null +++ b/dlls/windowscodecsext/Makefile.in @@ -0,0 +1,6 @@ +MODULE = windowscodecsext.dll + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/windowscodecsext/main.c b/dlls/windowscodecsext/main.c new file mode 100644 index 00000000000..608096e1039 --- /dev/null +++ b/dlls/windowscodecsext/main.c @@ -0,0 +1,47 @@ +/* + * Windows Codecs Extensions + * + * Copyright 2013 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) +{ + TRACE("(%p, %u, %p)\n", instance, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +} diff --git a/dlls/windowscodecsext/windowscodecsext.spec b/dlls/windowscodecsext/windowscodecsext.spec new file mode 100644 index 00000000000..d6b0e2bc7bd --- /dev/null +++ b/dlls/windowscodecsext/windowscodecsext.spec @@ -0,0 +1,3 @@ +@ stub DllGetClassObject +@ stub IWICColorTransform_Initialize_Proxy +@ stub WICCreateColorTransform_Proxy -- 2.11.4.GIT