Fix "Explorer Here" from "Folder as Workspace" problem if folder name contains comma

Close #4686, Fix #4249
pull/4684/merge
Rajendra Singh 2018-07-22 00:30:26 +05:30 committed by Don HO
parent 43b2344b23
commit 1c60f3f93e
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ void FileBrowser::popupMenuCmd(int cmdID)
if (::PathFileExists(path.c_str()))
{
TCHAR cmdStr[1024];
wsprintf(cmdStr, TEXT("explorer /select,%s"), path.c_str());
wsprintf(cmdStr, TEXT("explorer /select,\"%s\""), path.c_str());
Command cmd(cmdStr);
cmd.run(nullptr);
}