Delay showing editor the window

This fixes Waves V13 VST3 plugins crashing when opening the editor. They
will likely still crash later on anyways because they're kinda broken.
Amazing.
This commit is contained in:
Robbert van der Helm
2022-01-09 00:41:14 +01:00
parent 41127f28c0
commit 4767b758b8
5 changed files with 30 additions and 4 deletions
+6
View File
@@ -743,6 +743,12 @@ intptr_t Vst2Bridge::dispatch_wrapper(AEffect* plugin,
plugin->dispatcher(plugin, opcode, index, value,
editor_instance.get_win32_handle(), option);
// NOTE: There's zero reason why the window couldn't already be
// visible from the start, but Waves V13 VST3 plugins think it
// would be a splendid idea to randomly dereference null
// pointers when the window is already visible. Thanks Waves.
editor_instance.show();
return result;
} break;
case effEditClose: {