From 292a0a6800280df49a0a945cbe3feb2a3e7767b5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jun 2020 06:09:36 -0400 Subject: [PATCH] file_system: Correct duplicate conditionals in CreateDirectory() --- src/common/file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index ecdb9a90b..e88d3cfe9 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -953,7 +953,7 @@ bool FileSystem::CreateDirectory(const char* Path, bool Recursive) } // re-create the end if it's not a separator, check / as well because windows can interpret them - if (Path[pathLength - 1] != '\\' && Path[pathLength - 1] != '\\') + if (Path[pathLength - 1] != '\\' && Path[pathLength - 1] != '/') { if (!CreateDirectoryA(Path, nullptr)) {