diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d6e34cfbe..fc67c0a7c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -578,6 +578,10 @@ stages: vmImage: 'windows-latest' strategy: matrix: + 1.73.0 .. VS 2019: + BOOST_VERSION: 1.73.0 + BOOST_VERSION_U: 1_73_0 + TOOLSET: vc142 1.72.0 .. VS 2019: BOOST_VERSION: 1.72.0 BOOST_VERSION_U: 1_72_0 diff --git a/src/engine/pathsys.h b/src/engine/pathsys.h index de8e2979b..ffb62c18e 100644 --- a/src/engine/pathsys.h +++ b/src/engine/pathsys.h @@ -99,7 +99,14 @@ namespace b2 { inline bool is_rooted(const std::string &p) { - return p[0] == '/' || p[0] == '\\'; + #if NT + return + (p.size() >= 1 && (p[0] == '/' || p[0] == '\\')) || + (p.size() >= 3 && p[1] == ':' && (p[2] == '/' || p[2] == '\\')); + #else + return + (p.size() >= 1 && (p[0] == '/' || p[0] == '\\')); + #endif } std::string normalize(const std::string &p); }