Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
da26d356d9
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/juce_appframework/audio/plugins/formats/juce_VSTPluginFormat.cpp

+ 4
- 2
src/juce_appframework/audio/plugins/formats/juce_VSTPluginFormat.cpp View File

@@ -390,7 +390,9 @@ public:
#if JUCE_WIN32 || JUCE_LINUX #if JUCE_WIN32 || JUCE_LINUX
fullParentDirectoryPathName = file_.getParentDirectory().getFullPathName(); fullParentDirectoryPathName = file_.getParentDirectory().getFullPathName();
#elif JUCE_MAC #elif JUCE_MAC
PlatformUtilities::makeFSSpecFromPath (&parentDirFSSpec, file_.getParentDirectory().getFullPathName());
FSRef ref;
PlatformUtilities::makeFSRefFromPath (&ref, file_.getParentDirectory().getFullPathName());
FSGetCatalogInfo (&ref, kFSCatInfoNone, 0, 0, &parentDirFSSpec, 0);
#endif #endif
} }
@@ -2334,7 +2336,7 @@ static VstIntPtr handleGeneralCallback (VstInt32 opcode, VstInt32 index, VstInt3
if (JUCEApplication::getInstance() != 0) if (JUCEApplication::getInstance() != 0)
hostName = JUCEApplication::getInstance()->getApplicationName(); hostName = JUCEApplication::getInstance()->getApplicationName();
hostName.copyToBuffer ((char*) ptr, jmin (kVstMaxVendorStrLen, kVstMaxProductStrLen) - 1); hostName.copyToBuffer ((char*) ptr, jmin (kVstMaxVendorStrLen, kVstMaxProductStrLen) - 1);
} }
break; break;


Loading…
Cancel
Save