mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST2 Client: Fix issue where compatible VST3 IDs were misreported
`convertVST2PluginId` returns `array<byte, 16>` rather than `String`, so it's incorrect to interpret the result as a hex string.
This commit is contained in:
parent
e42ab22a78
commit
626a4ea475
1 changed files with 4 additions and 5 deletions
|
|
@ -1814,11 +1814,10 @@ private:
|
||||||
if (args.ptr == nullptr)
|
if (args.ptr == nullptr)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
const auto uid = VST3ClientExtensions::convertVST2PluginId (JucePlugin_VSTUniqueID, JucePlugin_Name, VST3ClientExtensions::InterfaceType::component);
|
const auto uid = VST3ClientExtensions::convertVST2PluginId (JucePlugin_VSTUniqueID,
|
||||||
const auto uidString = String ((const char *) uid.data(), uid.size());
|
JucePlugin_Name,
|
||||||
MemoryBlock uidValue;
|
VST3ClientExtensions::InterfaceType::component);
|
||||||
uidValue.loadFromHexString (uidString);
|
std::copy (uid.begin(), uid.end(), reinterpret_cast<std::byte*> (args.ptr));
|
||||||
uidValue.copyTo (args.ptr, 0, uidValue.getSize());
|
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue