[Base/GPU] Fix some usage of xe::find_base_path.

This commit is contained in:
gibbed
2019-07-18 18:37:47 -05:00
parent 887609ba44
commit 0bed6e565b
2 changed files with 4 additions and 2 deletions

View File

@@ -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 (base_path.size() && !PathExists(base_path)) {
if (!base_path.empty() && !PathExists(base_path)) {
return CreateFolder(base_path);
} else {
return true;