[PATCH] x3daudio1_2: Add stub dll.
Alex Henrie
alexhenrie24 at gmail.com
Fri Feb 27 00:15:29 CST 2015
For the problem with Forged Alliance mentioned in
https://bugs.winehq.org/show_bug.cgi?id=12182#c0
---
configure.ac | 1 +
dlls/x3daudio1_2/Makefile.in | 4 ++++
dlls/x3daudio1_2/main.c | 37 +++++++++++++++++++++++++++++++++++++
dlls/x3daudio1_2/x3daudio1_2.spec | 2 ++
4 files changed, 44 insertions(+)
create mode 100644 dlls/x3daudio1_2/Makefile.in
create mode 100644 dlls/x3daudio1_2/main.c
create mode 100644 dlls/x3daudio1_2/x3daudio1_2.spec
diff --git a/configure.ac b/configure.ac
index 465ea4d..f242181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3385,6 +3385,7 @@ WINE_CONFIG_TEST(dlls/wtsapi32/tests)
WINE_CONFIG_DLL(wuapi,,[clean])
WINE_CONFIG_DLL(wuaueng)
WINE_CONFIG_DLL(x3daudio1_1)
+WINE_CONFIG_DLL(x3daudio1_2)
WINE_CONFIG_DLL(x3daudio1_3)
WINE_CONFIG_DLL(x3daudio1_4)
WINE_CONFIG_DLL(x3daudio1_5)
diff --git a/dlls/x3daudio1_2/Makefile.in b/dlls/x3daudio1_2/Makefile.in
new file mode 100644
index 0000000..6632115
--- /dev/null
+++ b/dlls/x3daudio1_2/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = x3daudio1_2.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/x3daudio1_2/main.c b/dlls/x3daudio1_2/main.c
new file mode 100644
index 0000000..d71c54a
--- /dev/null
+++ b/dlls/x3daudio1_2/main.c
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2015 Alex Henrie
+ *
+ * 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"
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(instance);
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/x3daudio1_2/x3daudio1_2.spec b/dlls/x3daudio1_2/x3daudio1_2.spec
new file mode 100644
index 0000000..9a51f1b
--- /dev/null
+++ b/dlls/x3daudio1_2/x3daudio1_2.spec
@@ -0,0 +1,2 @@
+@ stub X3DAudioCalculate
+@ stub X3DAudioInitialize
--
2.3.1
More information about the wine-patches
mailing list