From 887609ba44a921c99e542d5b6d7fe45f1d677a68 Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 18 Jul 2019 18:32:04 -0500 Subject: [PATCH] [Base] Only attempt to create non-empty base paths in CreateParentFolder. --- src/xenia/base/filesystem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/filesystem.cc b/src/xenia/base/filesystem.cc index b964bde2b..3eb06757d 100644 --- a/src/xenia/base/filesystem.cc +++ b/src/xenia/base/filesystem.cc @@ -99,7 +99,7 @@ std::string CanonicalizePath(const std::string& original_path) { bool CreateParentFolder(const std::wstring& path) { auto fixed_path = xe::fix_path_separators(path, xe::kWPathSeparator); auto base_path = xe::find_base_path(fixed_path, xe::kWPathSeparator); - if (!PathExists(base_path)) { + if (base_path.size() && !PathExists(base_path)) { return CreateFolder(base_path); } else { return true;