Browse Source

vst3 unicode fix

tags/1.9.4
falkTX 10 years ago
parent
commit
6a716ade4d
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      source/modules/juce_audio_processors/Makefile
  2. +2
    -2
      source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 1
- 1
source/modules/juce_audio_processors/Makefile View File

@@ -15,7 +15,7 @@ ifeq ($(CARLA_VESTIGE_HEADER),true)
BUILD_CXX_FLAGS += -DVESTIGE_HEADER
else
# needed by vst3
BUILD_CXX_FLAGS += -DUNICODE_OFF -fpermissive
BUILD_CXX_FLAGS += -D_NATIVE_WCHAR_T_DEFINED -D__wchar_t=wchar_t -fpermissive
ifeq ($(DEBUG),true)
BUILD_CXX_FLAGS += -DDEVELOPMENT -D_DEBUG
else


+ 2
- 2
source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -451,7 +451,7 @@ public:
tresult PLUGIN_API getName (Vst::String128 name) override
{
Steinberg::String str (appName.toUTF8());
str.copyTo16 (name, 0, 127);
str.copyTo (name, 0, 127);
return kResultOk;
}
@@ -685,7 +685,7 @@ private:
if (fetchValueForId (id, stringToFetch))
{
Steinberg::String str (stringToFetch.toRawUTF8());
str.copyTo16 (result, 0, (Steinberg::int32) jmin (length, (Steinberg::uint32) std::numeric_limits<Steinberg::int32>::max()));
str.copyTo (result, 0, (Steinberg::int32) jmin (length, (Steinberg::uint32) std::numeric_limits<Steinberg::int32>::max()));
return kResultTrue;
}


Loading…
Cancel
Save