Achievements: Avoid potential crash when parsing malformed responses

This commit is contained in:
Connor McLaughlin 2022-10-04 00:43:51 +10:00 committed by refractionpcsx2
parent c379c833e4
commit 0af2e4af03
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ namespace Achievements
data.push_back(0);
const int error = ParseFunc(this, reinterpret_cast<const char*>(data.data()));
initialized = true;
initialized = (error == RC_OK);
const rc_api_response_t& response = static_cast<T*>(this)->response;
if (error != RC_OK)