mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Remove support for null pointers in setHostContext
Like the other functions, null pointers are never valid here so we shouldn't bother passing them as it only increases complexity.
This commit is contained in:
@@ -406,7 +406,8 @@ tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
|
||||
.host_context_args = Vst3HostContextProxy::ConstructArgs(
|
||||
host_context, instance_id())});
|
||||
} else {
|
||||
bridge.logger.log("Null pointer passed to 'IPluginBase::initialize()'");
|
||||
bridge.logger.log(
|
||||
"WARNING: Null pointer passed to 'IPluginBase::initialize()'");
|
||||
return Steinberg::kInvalidArgument;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user