From: Vijay Kiran Kamuju Subject: [PATCH 1/4] xactengine3_7: Add new dll. Message-Id: Date: Thu, 2 Jul 2020 22:35:58 +0200 Based on original patch from Ethan Lee Signed-off-by: Vijay Kiran Kamuju From c8f66e8d0f255cf4ebe422b13ebfa0b5bf26466f Mon Sep 17 00:00:00 2001 From: Vijay Kiran Kamuju Date: Sat, 13 Jun 2020 22:44:23 +0200 Subject: [PATCH 1/4] xactengine3_7: Add new dll. Based on original patch from Ethan Lee Signed-off-by: Vijay Kiran Kamuju --- configure | 2 + configure.ac | 1 + dlls/xactengine3_7/Makefile.in | 4 ++ dlls/xactengine3_7/xact_dll.c | 55 +++++++++++++++++++++++++++ dlls/xactengine3_7/xactengine3_7.spec | 4 ++ 5 files changed, 66 insertions(+) create mode 100644 dlls/xactengine3_7/Makefile.in create mode 100644 dlls/xactengine3_7/xact_dll.c create mode 100644 dlls/xactengine3_7/xactengine3_7.spec diff --git a/configure b/configure index 0cff0025aa..db89c70a15 100755 --- a/configure +++ b/configure @@ -1702,6 +1702,7 @@ enable_x3daudio1_4 enable_x3daudio1_5 enable_x3daudio1_6 enable_x3daudio1_7 +enable_xactengine3_7 enable_xapofx1_1 enable_xapofx1_2 enable_xapofx1_3 @@ -21312,6 +21313,7 @@ wine_fn_config_makefile dlls/x3daudio1_4 enable_x3daudio1_4 wine_fn_config_makefile dlls/x3daudio1_5 enable_x3daudio1_5 wine_fn_config_makefile dlls/x3daudio1_6 enable_x3daudio1_6 wine_fn_config_makefile dlls/x3daudio1_7 enable_x3daudio1_7 +wine_fn_config_makefile dlls/xactengine3_7 enable_xactengine3_7 wine_fn_config_makefile dlls/xapofx1_1 enable_xapofx1_1 wine_fn_config_makefile dlls/xapofx1_2 enable_xapofx1_2 wine_fn_config_makefile dlls/xapofx1_3 enable_xapofx1_3 diff --git a/configure.ac b/configure.ac index d596422320..34efb99780 100644 --- a/configure.ac +++ b/configure.ac @@ -3896,6 +3896,7 @@ WINE_CONFIG_MAKEFILE(dlls/x3daudio1_4) WINE_CONFIG_MAKEFILE(dlls/x3daudio1_5) WINE_CONFIG_MAKEFILE(dlls/x3daudio1_6) WINE_CONFIG_MAKEFILE(dlls/x3daudio1_7) +WINE_CONFIG_MAKEFILE(dlls/xactengine3_7) WINE_CONFIG_MAKEFILE(dlls/xapofx1_1) WINE_CONFIG_MAKEFILE(dlls/xapofx1_2) WINE_CONFIG_MAKEFILE(dlls/xapofx1_3) diff --git a/dlls/xactengine3_7/Makefile.in b/dlls/xactengine3_7/Makefile.in new file mode 100644 index 0000000000..139ccc67dc --- /dev/null +++ b/dlls/xactengine3_7/Makefile.in @@ -0,0 +1,4 @@ +MODULE = xactengine3_7.dll + +C_SRCS = \ + xact_dll.c diff --git a/dlls/xactengine3_7/xact_dll.c b/dlls/xactengine3_7/xact_dll.c new file mode 100644 index 0000000000..0c4c24e9a2 --- /dev/null +++ b/dlls/xactengine3_7/xact_dll.c @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2018 Ethan Lee for CodeWeavers + * + * 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 "xact3.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(xact3); + +static HINSTANCE instance; + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved) +{ + TRACE("(%p, %d, %p)\n", hinstDLL, reason, pReserved); + + switch (reason) + { + case DLL_PROCESS_ATTACH: + instance = hinstDLL; + DisableThreadLibraryCalls( hinstDLL ); + break; + } + return TRUE; +} + +HRESULT WINAPI DllCanUnloadNow(void) +{ + return S_FALSE; +} + +HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) +{ + FIXME("(%s, %s, %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv); + + return CLASS_E_CLASSNOTAVAILABLE; +} diff --git a/dlls/xactengine3_7/xactengine3_7.spec b/dlls/xactengine3_7/xactengine3_7.spec new file mode 100644 index 0000000000..c534b4fbf4 --- /dev/null +++ b/dlls/xactengine3_7/xactengine3_7.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stub DllRegisterServer +@ stub DllUnregisterServer -- 2.27.0