fix error in last commit with VST entry function type cast

git-svn-id: svn://localhost/ardour2/trunk@1512 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-02-26 17:48:53 +00:00
parent c20e55d07a
commit 44a3f5419b

View File

@ -514,7 +514,9 @@ fst_load (const char *path)
return NULL;
}
if ((fhandle->main_entry = ((AEffect*)()(audioMasterCallback)) GetProcAddress (fhandle->dll, "main")) == NULL) {
typedef AEffect* (*entryFunctionType)(audioMasterCallback);
if ((fhandle->main_entry = (entryFunctionType) GetProcAddress (fhandle->dll, "main")) == NULL) {
fst_unload (fhandle);
return NULL;
}