From f3be41caba0afae501c7a3b8a0603297098d32d7 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 3 Jan 2017 16:44:34 +0000 Subject: [PATCH] Fixed a bug in the Windows FileChooser where two backslashes would be added to the file paths of selected files --- modules/juce_gui_basics/native/juce_win32_FileChooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp index a6076a4228..83b62df7a1 100644 --- a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp +++ b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp @@ -282,7 +282,7 @@ void FileChooser::showPlatformDialog (Array& results, const String& title_ while (*filename != 0) { - results.add (File (String (files) + "\\" + String (filename))); + results.add (File (String (files)).getChildFile (String (filename))); filename += wcslen (filename) + 1; } }