diff --git a/src/project.cc b/src/project.cc index ce9f13a4..646ac36e 100644 --- a/src/project.cc +++ b/src/project.cc @@ -53,7 +53,8 @@ bool IsWindowsAbsolutePath(const std::string& path) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); }; - return path.size() > 3 && path[1] == ':' && path[2] == '/' && + return path.size() > 3 && path[1] == ':' && + (path[2] == '/' || path[2] == '\\') && is_drive_letter(path[0]); }