aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/System/Win32/Path.cpp2
-rw-r--r--lib/System/Win32/Path.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp
index 070ebb3..8201dd4 100644
--- a/lib/System/Win32/Path.cpp
+++ b/lib/System/Win32/Path.cpp
@@ -300,7 +300,7 @@ Path::setDirectory(const std::string& a_path) {
path = a_path;
FlipBackSlashes(path);
size_t last = a_path.size() -1;
- if (last != 0 && a_path[last] != '/')
+ if (a_path[last] != '/')
path += '/';
if (!isValid()) {
path = save.path;
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 070ebb3..8201dd4 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -300,7 +300,7 @@ Path::setDirectory(const std::string& a_path) {
path = a_path;
FlipBackSlashes(path);
size_t last = a_path.size() -1;
- if (last != 0 && a_path[last] != '/')
+ if (a_path[last] != '/')
path += '/';
if (!isValid()) {
path = save.path;