From 2201c65b000a4e8b03d09816d4e8a2803f421e33 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 17 Nov 2018 08:55:00 -0800 Subject: [PATCH] Core: Fix spurious error on Linux/Unix paths. CreateFullPath with an absolute path would try to create ''. --- Common/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index c6a19a2c00..e8dbc62091 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -336,7 +336,7 @@ bool CreateFullPath(const std::string &path) return true; } std::string subPath = fullPath.substr(0, position); - if (!File::Exists(subPath)) + if (position != 0 && !File::Exists(subPath)) File::CreateDir(subPath); // A safety check