diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 9d9b59f323..b651910767 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -61,7 +61,7 @@ static bool TryParse(const std::string& str, N* const output) iss.imbue(std::locale("C")); N tmp; - if (iss >> tmp) + if (iss >> tmp && iss.eof()) { *output = tmp; return true;