mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add pointer casts to instance creation
I copied this from the SDK implementation and they don't do any pointer casts there because it's not strictly necessary, but they're relying on implementation details that may not always hold true.
This commit is contained in:
@@ -72,11 +72,13 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
|
||||
Steinberg::FUID iid = Steinberg::FUID::fromTUID(_iid);
|
||||
if (iid == Steinberg::Vst::IMessage::iid) {
|
||||
// TODO: Add logging for this on verbosity level 1
|
||||
*obj = new Steinberg::Vst::HostMessage{};
|
||||
*obj = static_cast<Steinberg::Vst::IMessage*>(
|
||||
new Steinberg::Vst::HostMessage{});
|
||||
return Steinberg::kResultTrue;
|
||||
} else if (iid == Steinberg::Vst::IAttributeList::iid) {
|
||||
// TODO: Add logging for this on verbosity level 1
|
||||
*obj = new Steinberg::Vst::HostAttributeList{};
|
||||
*obj = static_cast<Steinberg::Vst::IAttributeList*>(
|
||||
new Steinberg::Vst::HostAttributeList{});
|
||||
return Steinberg::kResultTrue;
|
||||
} else {
|
||||
// When the host requests an interface we do not (yet) implement,
|
||||
|
||||
Reference in New Issue
Block a user