Merge pull request #1842 from magumagu/hle-crash

OSREPORT: Fix out-of-bounds string access.
This commit is contained in:
skidau 2015-01-10 12:15:57 +11:00
commit c1962ac9a6
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);