From: Austin English Subject: windowscodecsext: add a stub dll Message-Id: Date: Sat, 2 Feb 2013 05:41:56 +0100 http://bugs.winehq.org/show_bug.cgi?id=32862 -- -Austin From d5541c013d8a27d38b1070b2dc9eb758b24cac8e Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 2 Feb 2013 05:15:03 +0100 Subject: [PATCH] windowscodecsext: add stub dll --- configure.ac | 1 + dlls/windowscodecsext/Makefile.in | 7 +++++ dlls/windowscodecsext/main.c | 47 +++++++++++++++++++++++++++++ dlls/windowscodecsext/windowscodecsext.spec | 3 ++ 4 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.ac b/configure.ac index c93cd08..012228c 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 0000000..85dd61c --- /dev/null +++ b/dlls/windowscodecsext/Makefile.in @@ -0,0 +1,7 @@ +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 0000000..608096e --- /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 0000000..d6b0e2b --- /dev/null +++ b/dlls/windowscodecsext/windowscodecsext.spec @@ -0,0 +1,3 @@ +@ stub DllGetClassObject +@ stub IWICColorTransform_Initialize_Proxy +@ stub WICCreateColorTransform_Proxy -- 1.8.0.2