Skip to content

Commit

Permalink
fix: normalize path before calling OpenPath
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpdev committed Mar 21, 2024
1 parent ff82dc0 commit d578485
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions shell/common/platform_util_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,11 @@ void OpenPath(const base::FilePath& full_path, OpenCallback callback) {

base::ThreadPool::CreateCOMSTATaskRunner(
{base::MayBlock(), base::TaskPriority::USER_BLOCKING})
->PostTaskAndReplyWithResult(FROM_HERE,
base::BindOnce(&OpenPathOnThread, full_path),
std::move(callback));
->PostTaskAndReplyWithResult(
FROM_HERE,
base::BindOnce(&OpenPathOnThread,
full_path.NormalizePathSeparators()),
std::move(callback));
}

void OpenExternal(const GURL& url,
Expand Down

0 comments on commit d578485

Please sign in to comment.