summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-17 13:03:36 +0100
committerRobin Gareus <robin@gareus.org>2016-11-17 13:03:36 +0100
commitcc72cff504bc16c97a75c58d758a74d3b9436edd (patch)
tree8075c04666b3953e2ebaa412de65854298cc987c /libs/fst
parentcd5a319e4842862fa6e84f35e3781fce73e129cf (diff)
try VST2.4's VSTPluginMain first
This fixes a crash with loading u-he Diva on windows.
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/vstwin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/fst/vstwin.c b/libs/fst/vstwin.c
index fcfa836893..ec2f290cce 100644
--- a/libs/fst/vstwin.c
+++ b/libs/fst/vstwin.c
@@ -477,13 +477,10 @@ fst_load (const char *path)
return NULL;
}
- fhandle->main_entry = (main_entry_t) GetProcAddress ((HMODULE)fhandle->dll, "main");
+ fhandle->main_entry = (main_entry_t) GetProcAddress ((HMODULE)fhandle->dll, "VSTPluginMain");
if (fhandle->main_entry == 0) {
- if ((fhandle->main_entry = (main_entry_t) GetProcAddress ((HMODULE)fhandle->dll, "VSTPluginMain"))) {
- fprintf(stderr, "VST >= 2.4 plugin '%s'\n", path);
- //PBD::warning << path << _(": is a VST >= 2.4 - this plugin may or may not function correctly with this version of Ardour.") << endmsg;
- }
+ fhandle->main_entry = (main_entry_t) GetProcAddress ((HMODULE)fhandle->dll, "main");
}
if (fhandle->main_entry == 0) {