diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 76c5450db..80f9cbbb1 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -251,7 +251,7 @@ void ImportProject::importSln(std::istream &istr, const std::string &path) if (pos == std::string::npos) continue; const std::string::size_type pos1 = line.rfind('\"',pos); - if (pos == std::string::npos) + if (pos1 == std::string::npos) continue; std::string vcxproj(line.substr(pos1+1, pos-pos1+7)); if (!Path::isAbsolute(vcxproj))