diff --git a/SandboxieTools/Common/helpers.h b/SandboxieTools/Common/helpers.h index 2581bdbb..152b6e9f 100644 --- a/SandboxieTools/Common/helpers.h +++ b/SandboxieTools/Common/helpers.h @@ -76,7 +76,7 @@ std::vector SplitStrx(const T& String, const T& Separator, bool bKeepEmpty = typename T::size_type Sep = bMulti ? String.find_first_of(Separator,Pos) : String.find(Separator,Pos); if(Sep != T::npos) { - if(bKeepEmpty || Sep-Pos > 0) + if(bKeepEmpty || Sep > Pos) StringList.push_back(String.substr(Pos,Sep-Pos)); Pos = Sep+1; }