diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index aafb6dcde1..716a80770b 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -380,7 +380,7 @@ File File::getChildFile (StringRef relativePath) const if (lastSlash >= 0) path = path.substring (0, lastSlash); - relativePath = relativePath.text + 3; + relativePath = relativePath.text + (thirdChar == 0 ? 2 : 3); } else {