From f67c370f29f0f0f4654ed381a1a66e971e4d02f4 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Wed, 13 Sep 2017 23:01:22 -0700 Subject: [PATCH] Enable some new path unit tests --- src/core/file_unix.cpp | 13 +++++++------ src/twtest/file_t.cpp | 9 ++------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/core/file_unix.cpp b/src/core/file_unix.cpp index aa963dc..f5bad8a 100644 --- a/src/core/file_unix.cpp +++ b/src/core/file_unix.cpp @@ -527,7 +527,7 @@ bool cArosPath::IsAbsolutePath(const TSTRING& in) if (in[0] == '/') return true; - if (in.find(":/") != std::string::npos) + if (in.find(":") != std::string::npos) return true; return false; @@ -554,12 +554,13 @@ TSTRING cArosPath::AsNative( const TSTRING& in ) return in; } - int x = 1; - for ( x; in[x] == '/' && x