From e3d5ac35f3d738dc2285c51c751f66fb73f1d8d0 Mon Sep 17 00:00:00 2001 From: Jeff Booher Date: Tue, 11 Feb 2014 17:14:29 -0800 Subject: [PATCH] fixes single file selection mode on Windows --- appshell/appshell_extensions_win.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appshell/appshell_extensions_win.cpp b/appshell/appshell_extensions_win.cpp index c072b89ee..c4b77cd12 100644 --- a/appshell/appshell_extensions_win.cpp +++ b/appshell/appshell_extensions_win.cpp @@ -543,7 +543,9 @@ int32 ShowOpenDialog(bool allowMultipleSelection, } else { // If multiple files are not allowed, add the single file - selectedFiles->SetString(0, szFile); + std::wstring filePath(szFile); + ConvertToUnixPath(filePath); + selectedFiles->SetString(0, filePath); } } }