From: Sean Burke Subject: xapofx1_3: Add stub DLL (resend) Message-Id: Date: Mon, 29 Dec 2014 18:09:49 -0500 Stub in support for XAudio2's CreateFX from xapofx1_3.dll, preventing crashes on start when this function is needed. Solves https://bugs.winehq.org/show_bug.cgi?id=27279 Sean Burke
Stub in support for XAudio2's CreateFX from xapofx1_3.dll, preventing crashes on start when this function is needed.

Solves https://bugs.winehq.org/show_bug.cgi?id=27279


Sean Burke
From 8df4845301b6e655a6ae2d88d114f513fec0459c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20de=20B=C3=BArca?= Date: Sun, 31 Aug 2014 17:11:10 -0600 Subject: [PATCH] xapofx1_3: Add stub DLL --- configure | 2 ++ configure.ac | 1 + dlls/xapofx1_3/Makefile.in | 6 ++++++ dlls/xapofx1_3/main.c | 45 +++++++++++++++++++++++++++++++++++++++++++ dlls/xapofx1_3/version.rc | 26 +++++++++++++++++++++++++ dlls/xapofx1_3/xapofx1_3.spec | 1 + 6 files changed, 81 insertions(+) create mode 100644 dlls/xapofx1_3/Makefile.in create mode 100644 dlls/xapofx1_3/main.c create mode 100644 dlls/xapofx1_3/version.rc create mode 100644 dlls/xapofx1_3/xapofx1_3.spec diff --git a/configure b/configure index 119eaa8..6f536c1 100755 --- a/configure +++ b/configure @@ -1321,6 +1321,7 @@ enable_wuapi enable_wuaueng enable_x3daudio1_7 enable_xapofx1_1 +enable_xapofx1_3 enable_xinput1_1 enable_xinput1_2 enable_xinput1_3 @@ -17541,6 +17542,7 @@ 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 xapofx1_3 enable_xapofx1_3 wine_fn_config_dll xinput1_1 enable_xinput1_1 wine_fn_config_dll xinput1_2 enable_xinput1_2 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput diff --git a/configure.ac b/configure.ac index 9f64cd3..963b4e5 100644 --- a/configure.ac +++ b/configure.ac @@ -3365,6 +3365,7 @@ WINE_CONFIG_DLL(wuapi,,[clean]) WINE_CONFIG_DLL(wuaueng) WINE_CONFIG_DLL(x3daudio1_7) WINE_CONFIG_DLL(xapofx1_1) +WINE_CONFIG_DLL(xapofx1_3) WINE_CONFIG_DLL(xinput1_1) WINE_CONFIG_DLL(xinput1_2) WINE_CONFIG_DLL(xinput1_3,,[implib],[xinput]) diff --git a/dlls/xapofx1_3/Makefile.in b/dlls/xapofx1_3/Makefile.in new file mode 100644 index 0000000..3730872 --- /dev/null +++ b/dlls/xapofx1_3/Makefile.in @@ -0,0 +1,6 @@ +MODULE = xapofx1_3.dll + +C_SRCS = \ + main.c + +RC_SRCS = version.rc diff --git a/dlls/xapofx1_3/main.c b/dlls/xapofx1_3/main.c new file mode 100644 index 0000000..6990cb0 --- /dev/null +++ b/dlls/xapofx1_3/main.c @@ -0,0 +1,45 @@ +/* + * Copyright 2014 Seán de Búrca + * + * 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" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(xapofx); + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + switch(reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinst); + break; + } + return TRUE; +} diff --git a/dlls/xapofx1_3/version.rc b/dlls/xapofx1_3/version.rc new file mode 100644 index 0000000..64d9af5 --- /dev/null +++ b/dlls/xapofx1_3/version.rc @@ -0,0 +1,26 @@ +/* + * Copyright 2014 Seán de Búrca + * + * 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 + */ + +#define WINE_FILEDESCRIPTION_STR "Wine XAPOFX dll" +#define WINE_FILENAME_STR "xapofx1_3.dll" +#define WINE_FILEVERSION 9,26,1500,0 +#define WINE_FILEVERSION_STR "9.26.1500.0" +#define WINE_PRODUCTVERSION 9,26,1500,0 +#define WINE_PRODUCTVERSION_STR "9.26.1500.0" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/xapofx1_3/xapofx1_3.spec b/dlls/xapofx1_3/xapofx1_3.spec new file mode 100644 index 0000000..33269e3 --- /dev/null +++ b/dlls/xapofx1_3/xapofx1_3.spec @@ -0,0 +1 @@ +@ stub CreateFX -- 1.9.3