1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a bug in DirectoryIterator where the result would be inconsistent between Mac/Window when using a default constructed File object

This commit is contained in:
hogliux 2016-10-19 10:20:21 +01:00
parent a347689d96
commit ff52d76197

View file

@ -740,7 +740,7 @@ class DirectoryIterator::NativeIterator::Pimpl
{
public:
Pimpl (const File& directory, const String& wildCard)
: directoryWithWildCard (File::addTrailingSeparator (directory.getFullPathName()) + wildCard),
: directoryWithWildCard (directory.getFullPathName().isNotEmpty() ? File::addTrailingSeparator (directory.getFullPathName()) + wildCard : String()),
handle (INVALID_HANDLE_VALUE)
{
}