[PATCH 2/5] msi/tests: Add a test DLL for custom actions.

Zebediah Figura z.figura12 at gmail.com
Thu Nov 23 15:35:57 CST 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/msi/tests/Makefile.in            |  3 +++
 dlls/msi/tests/custom.dll/Makefile.in |  4 ++++
 dlls/msi/tests/custom.dll/custom.spec |  0
 dlls/msi/tests/custom.dll/main.c      | 26 ++++++++++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 dlls/msi/tests/custom.dll/Makefile.in
 create mode 100644 dlls/msi/tests/custom.dll/custom.spec
 create mode 100644 dlls/msi/tests/custom.dll/main.c

diff --git a/dlls/msi/tests/Makefile.in b/dlls/msi/tests/Makefile.in
index 66f8abb..fd3d9bd 100644
--- a/dlls/msi/tests/Makefile.in
+++ b/dlls/msi/tests/Makefile.in
@@ -13,3 +13,6 @@ C_SRCS = \
 	record.c \
 	source.c \
 	suminfo.c
+
+RC_DLLS = \
+	custom.dll
diff --git a/dlls/msi/tests/custom.dll/Makefile.in b/dlls/msi/tests/custom.dll/Makefile.in
new file mode 100644
index 0000000..a711e4b
--- /dev/null
+++ b/dlls/msi/tests/custom.dll/Makefile.in
@@ -0,0 +1,4 @@
+RESOURCE  = custom.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/msi/tests/custom.dll/custom.spec b/dlls/msi/tests/custom.dll/custom.spec
new file mode 100644
index 0000000..e69de29
diff --git a/dlls/msi/tests/custom.dll/main.c b/dlls/msi/tests/custom.dll/main.c
new file mode 100644
index 0000000..838b8ae
--- /dev/null
+++ b/dlls/msi/tests/custom.dll/main.c
@@ -0,0 +1,26 @@
+/*
+ * DLL for testing type 1 custom actions
+ *
+ * Copyright 2017 Zebediah Figura
+ *
+ * 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 <windef.h>
+
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
+{
+    return TRUE;
+}
-- 
2.7.4




More information about the wine-devel mailing list