1
0
Fork 0

DBG+GUI: FIXEZZ

This commit is contained in:
mrexodia 2016-10-24 23:32:05 +02:00
parent 5795fdc771
commit e1fc0926a4
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 7 additions and 6 deletions

View File

@ -414,6 +414,7 @@ void DebugUpdateGui(duint disasm_addr, bool stack)
strcat_s(threadName, " ");
sprintf_s(title, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "File: %s - PID: %X - %sThread: %s%X%s")), szBaseFileName, fdProcessInfo->dwProcessId, modtext, threadName, currentThreadId, threadswitch);
GuiUpdateWindowTitle(title);
GuiUpdateDisassemblyView();
GuiUpdateRegisterView();
GuiUpdateThreadView();
GuiUpdatePatches();

View File

@ -1591,7 +1591,7 @@ void Disassembly::prepareDataRange(dsint startRva, dsint endRva, const std::func
int i = 0;
while(true)
{
if(wAddr >= endRva)
if(wAddr > endRva)
break;
wAddrPrev = wAddr;
auto wInst = DisassembleAt(wAddr);

View File

@ -1833,15 +1833,15 @@ static void setupMenuCustomizationHelper(QMenu* parentMenu, QList<QAction*> & st
void MainWindow::setupMenuCustomization()
{
mFileMenuStrings.append(reinterpret_cast<QAction* const&>("File"));
mFileMenuStrings.append(reinterpret_cast<QAction* const &>("File"));
setupMenuCustomizationHelper(ui->menuFile, mFileMenuStrings);
mDebugMenuStrings.append(reinterpret_cast<QAction* const&>("Debug"));
mDebugMenuStrings.append(reinterpret_cast<QAction* const &>("Debug"));
setupMenuCustomizationHelper(ui->menuDebug, mDebugMenuStrings);
mOptionsMenuStrings.append(reinterpret_cast<QAction* const&>("Option"));
mOptionsMenuStrings.append(reinterpret_cast<QAction* const &>("Option"));
setupMenuCustomizationHelper(ui->menuOptions, mOptionsMenuStrings);
mHelpMenuStrings.append(reinterpret_cast<QAction* const&>("Help"));
mHelpMenuStrings.append(reinterpret_cast<QAction* const &>("Help"));
setupMenuCustomizationHelper(ui->menuHelp, mHelpMenuStrings);
mViewMenuStrings.append(reinterpret_cast<QAction* const&>("View"));
mViewMenuStrings.append(reinterpret_cast<QAction* const &>("View"));
setupMenuCustomizationHelper(ui->menuView, mViewMenuStrings);
onMenuCustomized();
Config()->registerMainMenuStringList(&mFileMenuStrings);