From 36350c34de4f4d6e41bbe8aa4131e0dde7070ac3 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 16 Apr 2020 01:25:38 +0200 Subject: [PATCH] Fix casing of the legacy VST entry point name --- src/plugin/plugin.cpp | 2 +- src/wine-host/plugin-bridge.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/plugin.cpp b/src/plugin/plugin.cpp index 09ea34af..67bd1e46 100644 --- a/src/plugin/plugin.cpp +++ b/src/plugin/plugin.cpp @@ -29,7 +29,7 @@ extern "C" { extern VST_EXPORT AEffect* VSTPluginMain(audioMasterCallback); -VST_EXPORT AEffect* MAIN(audioMasterCallback audioMaster) { +VST_EXPORT AEffect* main(audioMasterCallback audioMaster) { return VSTPluginMain(audioMaster); } diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index 0c2a300d..918af96f 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -76,7 +76,7 @@ PluginBridge::PluginBridge(std::string plugin_dll_path, // VST plugin entry point functions should be called `VSTPluginMain`, but // there are some older deprecated names that legacy plugins may still use VstEntryPoint vst_entry_point = nullptr; - for (auto name : {"VSTPluginMain", "MAIN", "main_plugin"}) { + for (auto name : {"VSTPluginMain", "main", "main_plugin"}) { vst_entry_point = reinterpret_cast(reinterpret_cast( GetProcAddress(plugin_handle.get(), name)));