From f4c871f07ec2d6156ecf5d97bee2eed9877d19c0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 24 Dec 2020 14:46:02 +0100 Subject: [PATCH] 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. --- src/wine-host/bridges/vst3-impls/host-context-proxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wine-host/bridges/vst3-impls/host-context-proxy.cpp b/src/wine-host/bridges/vst3-impls/host-context-proxy.cpp index 38e9af6d..438d54f4 100644 --- a/src/wine-host/bridges/vst3-impls/host-context-proxy.cpp +++ b/src/wine-host/bridges/vst3-impls/host-context-proxy.cpp @@ -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( + 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( + new Steinberg::Vst::HostAttributeList{}); return Steinberg::kResultTrue; } else { // When the host requests an interface we do not (yet) implement,