mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 03:45:38 +00:00
GameDatabase: Fix incorrect entries returned from short serials
This commit is contained in:
parent
a11883e2b4
commit
558978b7f2
|
@ -118,8 +118,11 @@ static const rapidjson::Value* FindDatabaseEntry(const std::string_view& code, r
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtil::Strncasecmp(current_code.GetString(), code.data(), code.length()) == 0)
|
if (current_code.GetStringLength() == code.length() &&
|
||||||
|
StringUtil::Strncasecmp(current_code.GetString(), code.data(), code.length()) == 0)
|
||||||
|
{
|
||||||
return ¤t;
|
return ¤t;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue