Change entry point search order

Shouldn't matter at all, but `main` is such a generic and ambiguous name
it should probably be the last option.
This commit is contained in:
Robbert van der Helm
2020-04-16 15:42:27 +02:00
parent 949d41b6aa
commit 3d605b8940
+1 -1
View File
@@ -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_plugin", "main"}) {
vst_entry_point =
reinterpret_cast<VstEntryPoint>(reinterpret_cast<size_t>(
GetProcAddress(plugin_handle.get(), name)));