From aca70f317c00eec457327cd0209f0dc2a78e7fe9 Mon Sep 17 00:00:00 2001 From: zilmar Date: Sat, 9 Feb 2019 05:02:02 +1030 Subject: [PATCH] [Project64] Fix CPath::IsRelative for non WIN32 --- Source/Common/path.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Source/Common/path.cpp b/Source/Common/path.cpp index 3f773258d..d4975dfd9 100644 --- a/Source/Common/path.cpp +++ b/Source/Common/path.cpp @@ -587,11 +587,16 @@ bool CPath::IsRelative() const { return false; } + if (m_strPath.length() > 2 && m_strPath[0] == DIRECTORY_DELIMITER && m_strPath[1] == DIRECTORY_DELIMITER) + { + return false; + } +#else + if (m_strPath.length() > 1 && m_strPath[0] == DIRECTORY_DELIMITER) + { + return false; + } #endif - if (m_strPath.length() > 1 && m_strPath[0] == DIRECTORY_DELIMITER && m_strPath[1] == DIRECTORY_DELIMITER) - { - return false; - } return true; }