OSREPORT: Fix out-of-bounds string access.

This commit is contained in:
magumagu 2015-01-06 17:12:31 -08:00
parent a2ec4d5f51
commit f1420472c8
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ void GetStringVA(std::string& _rOutBuffer, u32 strReg)
}
else
{
if ((string[i-2] == 'l') && (string[i-1] == 'l')) // hax, just seen this on sysmenu osreport
if (string[i-1] == 'l' && string[i-2] == 'l') // hax, just seen this on sysmenu osreport
{
Parameter = GPR(++ParameterCounter);
Parameter = (Parameter<<32)|GPR(++ParameterCounter);