fix compiler complaints about RCU code; fix a couple of compiler warnings
[ardour.git] / libs / fst / vstwin.c
index 0ee34b70b40e13872e2ca7e128fcff08b7c48fea..62bab5b418f5b058f2d85d34a2014d3a1565e65d 100644 (file)
@@ -514,7 +514,7 @@ fst_load (const char *path)
                return NULL;
        }
 
-       if ((fhandle->main_entry = GetProcAddress (fhandle->dll, "main")) == NULL) {
+       if ((fhandle->main_entry = ((AEffect*)()(audioMasterCallback)) GetProcAddress (fhandle->dll, "main")) == NULL) {
                fst_unload (fhandle);
                return NULL;
        }