[PATCH] msdelta: Add stub DLL

Andrew Eikum aeikum at codeweavers.com
Thu Oct 1 10:27:43 CDT 2015


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
 configure.ac                |  1 +
 dlls/msdelta/Makefile.in    |  4 ++++
 dlls/msdelta/msdelta.spec   | 15 +++++++++++++++
 dlls/msdelta/msdelta_main.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 62 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.ac b/configure.ac
index 135268f..daefbd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3109,6 +3109,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 0000000..afdd037
--- /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 0000000..ce2b5ed
--- /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 0000000..470b427
--- /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 <stdarg.h>
+
+#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;
+}
-- 
2.6.0




More information about the wine-patches mailing list