Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit baef1f7

Browse files
committed
Merge pull request #422 from adobe/jeff/fix-6840
Ensure that filenames returned when allowMultipleSelection = false are properly canonicalized
2 parents c54371b + e21f9de commit baef1f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

appshell/appshell_extensions_win.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
543543

544544
} else {
545545
// If multiple files are not allowed, add the single file
546-
selectedFiles->SetString(0, szFile);
546+
std::wstring filePath(szFile);
547+
ConvertToUnixPath(filePath);
548+
selectedFiles->SetString(0, filePath);
547549
}
548550
}
549551
}

0 commit comments

Comments
 (0)