x3daudio1_6: add stub dll (try 2)

Austin English austinenglish at gmail.com
Mon Jan 12 16:52:30 CST 2015


Corrected email.

On Mon, Jan 12, 2015 at 4:21 PM, Austin English <austinenglish at gmail.com>
wrote:

>
>
> --
> -Austin
>



-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150112/3a518ac3/attachment.html>
-------------- next part --------------
From 1dc1e452b4c6ad8ff877c668bc87b7922401ee9c Mon Sep 17 00:00:00 2001
From: Austin English <austin at gaikai.com>
Date: Wed, 24 Dec 2014 14:44:14 -0800
Subject: [PATCH] x3daudio1_6: add stub dll

---
 configure.ac                      |  1 +
 dlls/x3daudio1_6/Makefile.in      |  4 ++++
 dlls/x3daudio1_6/main.c           | 42 +++++++++++++++++++++++++++++++++++++++
 dlls/x3daudio1_6/x3daudio1_6.spec |  2 ++
 4 files changed, 49 insertions(+)
 create mode 100644 dlls/x3daudio1_6/Makefile.in
 create mode 100644 dlls/x3daudio1_6/main.c
 create mode 100644 dlls/x3daudio1_6/x3daudio1_6.spec

diff --git a/configure.ac b/configure.ac
index 8263c66..9b5f5d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3366,6 +3366,7 @@ WINE_CONFIG_DLL(wtsapi32,,[implib])
 WINE_CONFIG_TEST(dlls/wtsapi32/tests)
 WINE_CONFIG_DLL(wuapi,,[clean])
 WINE_CONFIG_DLL(wuaueng)
+WINE_CONFIG_DLL(x3daudio1_6)
 WINE_CONFIG_DLL(x3daudio1_7)
 WINE_CONFIG_DLL(xapofx1_1)
 WINE_CONFIG_DLL(xinput1_1)
diff --git a/dlls/x3daudio1_6/Makefile.in b/dlls/x3daudio1_6/Makefile.in
new file mode 100644
index 0000000..ad59b8f
--- /dev/null
+++ b/dlls/x3daudio1_6/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = x3daudio1_6.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/x3daudio1_6/main.c b/dlls/x3daudio1_6/main.c
new file mode 100644
index 0000000..94c3b23
--- /dev/null
+++ b/dlls/x3daudio1_6/main.c
@@ -0,0 +1,42 @@
+/*
+ * X3DAudio1_6 implementation
+ *
+ * Copyright 2015 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    switch (fdwReason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hinstDLL);
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/x3daudio1_6/x3daudio1_6.spec b/dlls/x3daudio1_6/x3daudio1_6.spec
new file mode 100644
index 0000000..9a51f1b
--- /dev/null
+++ b/dlls/x3daudio1_6/x3daudio1_6.spec
@@ -0,0 +1,2 @@
+@ stub X3DAudioCalculate
+@ stub X3DAudioInitialize
-- 
2.2.0



More information about the wine-patches mailing list