From ed36314dd9c9042bb1cc0d75c2e5c3c64685c8eb Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 1 Oct 2015 10:27:43 -0500 Subject: [PATCH] msdelta: Add stub DLL. Signed-off-by: Andrew Eikum --- configure | 2 ++ configure.ac | 1 + dlls/msdelta/Makefile.in | 4 ++++ dlls/msdelta/msdelta.spec | 15 +++++++++++++ dlls/msdelta/msdelta_main.c | 42 +++++++++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 dlls/msdelta/Makefile.in create mode 100644 dlls/msdelta/msdelta.spec create mode 100644 dlls/msdelta/msdelta_main.c diff --git a/configure b/configure index e3b63680b78..fab457f63a8 100755 --- a/configure +++ b/configure @@ -1155,6 +1155,7 @@ enable_mscoree enable_msctf enable_msctfp enable_msdaps +enable_msdelta enable_msdmo enable_msftedit enable_msg711_acm @@ -17560,6 +17561,7 @@ wine_fn_config_dll msctf enable_msctf clean wine_fn_config_test dlls/msctf/tests msctf_test wine_fn_config_dll msctfp enable_msctfp clean wine_fn_config_dll msdaps enable_msdaps clean +wine_fn_config_dll msdelta enable_msdelta wine_fn_config_dll msdmo enable_msdmo implib wine_fn_config_test dlls/msdmo/tests msdmo_test wine_fn_config_dll msftedit enable_msftedit diff --git a/configure.ac b/configure.ac index 114a7fa8bf7..c37c491f7ec 100644 --- a/configure.ac +++ b/configure.ac @@ -3110,6 +3110,7 @@ WINE_CONFIG_DLL(msctf,,[clean]) WINE_CONFIG_TEST(dlls/msctf/tests) WINE_CONFIG_DLL(msctfp,,[clean]) WINE_CONFIG_DLL(msdaps,,[clean]) +WINE_CONFIG_DLL(msdelta) WINE_CONFIG_DLL(msdmo,,[implib]) WINE_CONFIG_TEST(dlls/msdmo/tests) WINE_CONFIG_DLL(msftedit) diff --git a/dlls/msdelta/Makefile.in b/dlls/msdelta/Makefile.in new file mode 100644 index 00000000000..afdd0373730 --- /dev/null +++ b/dlls/msdelta/Makefile.in @@ -0,0 +1,4 @@ +MODULE = msdelta.dll + +C_SRCS = \ + msdelta_main.c diff --git a/dlls/msdelta/msdelta.spec b/dlls/msdelta/msdelta.spec new file mode 100644 index 00000000000..ce2b5edf472 --- /dev/null +++ b/dlls/msdelta/msdelta.spec @@ -0,0 +1,15 @@ +@ stub ApplyDeltaA +@ stub ApplyDeltaB +@ stub ApplyDeltaProvidedB +@ stub ApplyDeltaW +@ stub CreateDeltaA +@ stub CreateDeltaB +@ stub CreateDeltaW +@ stub DeltaFree +@ stub DeltaNormalizeProvidedB +@ stub GetDeltaInfoA +@ stub GetDeltaInfoB +@ stub GetDeltaInfoW +@ stub GetDeltaSignatureA +@ stub GetDeltaSignatureB +@ stub GetDeltaSignatureW diff --git a/dlls/msdelta/msdelta_main.c b/dlls/msdelta/msdelta_main.c new file mode 100644 index 00000000000..470b427e8ee --- /dev/null +++ b/dlls/msdelta/msdelta_main.c @@ -0,0 +1,42 @@ +/* Copyright 2015 Andrew Eikum for CodeWeavers + * + * 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(msdelta); + +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; + } + + return TRUE; +}