1
0
Fork 0

Fix incorrect styling from 5e4aa60.

This commit is contained in:
ynwarcs 2024-04-08 21:10:08 +02:00
parent 5e4aa6053e
commit 84079483fe
1 changed files with 7 additions and 7 deletions

View File

@ -292,17 +292,17 @@ void CallStackView::loadSymbolsSingleThreadSlot()
char module[MAX_MODULE_SIZE] = ""; char module[MAX_MODULE_SIZE] = "";
duint firstRowForThread = 0; duint firstRowForThread = 0;
const duint threadId = getCellUserdata(getInitialSelection(), ColThread); const duint threadId = getCellUserdata(getInitialSelection(), ColThread);
for (duint row = getInitialSelection(); row > 0; --row) for(duint row = getInitialSelection(); row > 0; --row)
{ {
if (getCellUserdata(row, ColThread) != threadId) if(getCellUserdata(row, ColThread) != threadId)
{ {
firstRowForThread = row + 1; firstRowForThread = row + 1;
break; break;
} }
} }
for (duint row = firstRowForThread; row < getRowCount(); ++row) for(duint row = firstRowForThread; row < getRowCount(); ++row)
{ {
if (getCellUserdata(row, ColThread) != threadId) if(getCellUserdata(row, ColThread) != threadId)
break; break;
if(DbgGetModuleAt(getCellUserdata(row, ColFrom), module)) if(DbgGetModuleAt(getCellUserdata(row, ColFrom), module))
DbgCmdExec(QString("symdownload \"%0\"").arg(module)); DbgCmdExec(QString("symdownload \"%0\"").arg(module));
@ -312,9 +312,9 @@ void CallStackView::loadSymbolsSingleThreadSlot()
void CallStackView::loadSymbolsAllThreadsSlot() void CallStackView::loadSymbolsAllThreadsSlot()
{ {
char module[MAX_MODULE_SIZE] = ""; char module[MAX_MODULE_SIZE] = "";
for (duint row = 0; row < getRowCount(); ++row) for(duint row = 0; row < getRowCount(); ++row)
{ {
if (DbgGetModuleAt(getCellUserdata(row, ColFrom), module)) if(DbgGetModuleAt(getCellUserdata(row, ColFrom), module))
DbgCmdExec(QString("symdownload \"%0\"").arg(module)); DbgCmdExec(QString("symdownload \"%0\"").arg(module));
} }
} }