1
0
Fork 0

GUI: close issue #573 (invalid sizes in save data)

This commit is contained in:
mrexodia 2016-08-26 17:09:06 +02:00
parent 8cf32e3f26
commit abbad9dfe3
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 3 additions and 4 deletions

View File

@ -1210,13 +1210,12 @@ void CPUDump::binarySaveToFileSlot()
if(fileName.length())
{
// Get starting selection and selection size, then convert selStart to VA
dsint rvaSelStart = getSelectionStart();
dsint selSize = getSelectionEnd() - rvaSelStart + 1;
dsint vaSelStart = rvaToVa(rvaSelStart);
dsint selStart = getSelectionStart();
dsint selSize = getSelectionEnd() - selStart + 1;
// Prepare command
fileName = QDir::toNativeSeparators(fileName);
QString cmd = QString("savedata %1,%2,%3").arg(fileName, QString::number(vaSelStart, 16), QString::number(selSize));
QString cmd = QString("savedata \"%1\",%2,%3").arg(fileName, ToHexString(rvaToVa(selStart)), ToHexString(selSize));
DbgCmdExec(cmd.toUtf8().constData());
}
}