Browse Source

Fixed a compiler warning

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
f654d453ba
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 3
- 3
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -2090,15 +2090,15 @@ private:
}
pointer_sized_int handleCockosGetParameterText (pointer_sized_int paramIndex,
void* destination,
void* dest,
float value)
{
if (processor != nullptr && destination != nullptr)
if (processor != nullptr && dest != nullptr)
{
if (auto* param = processor->getParameters()[(int) paramIndex])
{
String text (param->getText (value, 1024));
memcpy (destination, text.toRawUTF8(), text.length() + 1);
memcpy (dest, text.toRawUTF8(), ((size_t) text.length()) + 1);
return 0xbeef;
}
}


Loading…
Cancel
Save