From 7feedb4ed9d850b617ee954e164861c5aae60e7e Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sun, 26 Nov 2017 14:16:30 +0100 Subject: [PATCH] VST: Fix main entry calling convention This will probably break everything, but it was needed to load 32bit VST plugins with MSVC. --- plugins/vst_base/RemoteVstPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vst_base/RemoteVstPlugin.cpp b/plugins/vst_base/RemoteVstPlugin.cpp index b95935c2c..db5c99e8f 100644 --- a/plugins/vst_base/RemoteVstPlugin.cpp +++ b/plugins/vst_base/RemoteVstPlugin.cpp @@ -814,7 +814,7 @@ bool RemoteVstPlugin::load( const std::string & _plugin_file ) return false; } - typedef AEffect * ( __stdcall * mainEntryPointer ) + typedef AEffect * ( __cdecl * mainEntryPointer ) ( audioMasterCallback ); mainEntryPointer mainEntry = (mainEntryPointer) GetProcAddress( m_libInst, "VSTPluginMain" );