VST: Fix main entry calling convention

This will probably break everything, but it was needed to load 32bit VST
plugins with MSVC.
This commit is contained in:
Lukas W
2017-11-26 14:16:30 +01:00
parent d756a7ade0
commit 7feedb4ed9

View File

@@ -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" );