From 0c2b684cbfe90301263eb8df2945a7b2e4da42cc Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sun, 21 Dec 2014 19:29:25 -0700 Subject: [PATCH] x3daudio1_7: Add stub DLL. --- configure | 2 ++ configure.ac | 1 + dlls/x3daudio1_7/Makefile.in | 4 ++++ dlls/x3daudio1_7/main.c | 36 +++++++++++++++++++++++++++++++ dlls/x3daudio1_7/x3daudio1_7.spec | 2 ++ 5 files changed, 45 insertions(+) create mode 100644 dlls/x3daudio1_7/Makefile.in create mode 100644 dlls/x3daudio1_7/main.c create mode 100644 dlls/x3daudio1_7/x3daudio1_7.spec diff --git a/configure b/configure index b2d922ae85c..119eaa85202 100755 --- a/configure +++ b/configure @@ -1319,6 +1319,7 @@ enable_wsock32 enable_wtsapi32 enable_wuapi enable_wuaueng +enable_x3daudio1_7 enable_xapofx1_1 enable_xinput1_1 enable_xinput1_2 @@ -17538,6 +17539,7 @@ wine_fn_config_dll wtsapi32 enable_wtsapi32 implib wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test wine_fn_config_dll wuapi enable_wuapi clean wine_fn_config_dll wuaueng enable_wuaueng +wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7 wine_fn_config_dll xapofx1_1 enable_xapofx1_1 wine_fn_config_dll xinput1_1 enable_xinput1_1 wine_fn_config_dll xinput1_2 enable_xinput1_2 diff --git a/configure.ac b/configure.ac index 2fa4dccc81d..9f64cd37932 100644 --- a/configure.ac +++ b/configure.ac @@ -3363,6 +3363,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_7) WINE_CONFIG_DLL(xapofx1_1) WINE_CONFIG_DLL(xinput1_1) WINE_CONFIG_DLL(xinput1_2) diff --git a/dlls/x3daudio1_7/Makefile.in b/dlls/x3daudio1_7/Makefile.in new file mode 100644 index 00000000000..7487ca8a21c --- /dev/null +++ b/dlls/x3daudio1_7/Makefile.in @@ -0,0 +1,4 @@ +MODULE = x3daudio1_7.dll + +C_SRCS = \ + main.c diff --git a/dlls/x3daudio1_7/main.c b/dlls/x3daudio1_7/main.c new file mode 100644 index 00000000000..672cb1c6740 --- /dev/null +++ b/dlls/x3daudio1_7/main.c @@ -0,0 +1,36 @@ +/* + * Copyright 2014 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 + +#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_7/x3daudio1_7.spec b/dlls/x3daudio1_7/x3daudio1_7.spec new file mode 100644 index 00000000000..9a51f1badea --- /dev/null +++ b/dlls/x3daudio1_7/x3daudio1_7.spec @@ -0,0 +1,2 @@ +@ stub X3DAudioCalculate +@ stub X3DAudioInitialize