1
0
Fork 0

DBG: Fix comment wording

This commit is contained in:
Nukem 2015-04-24 15:04:00 -04:00
parent 250827ec8c
commit 023a9588fc
2 changed files with 6 additions and 6 deletions

View File

@ -280,7 +280,7 @@ bool SymGetSourceLine(uint Cip, char* FileName, int* Line)
return true;
}
// Construct full path from .pdb path
// Construct full path from pdb path
IMAGEHLP_MODULE64 modInfo;
memset(&modInfo, 0, sizeof(IMAGEHLP_MODULE64));
modInfo.SizeOfStruct = sizeof(IMAGEHLP_MODULE64);
@ -288,11 +288,11 @@ bool SymGetSourceLine(uint Cip, char* FileName, int* Line)
if(!SafeSymGetModuleInfo64(fdProcessInfo->hProcess, Cip, &modInfo))
return false;
// Strip the full path, leaving only the file name
char* fileName = strrchr(modInfo.LoadedPdbName, '\\');
// Strip the name, leaving only the file directory
char* pdbFileName = strrchr(modInfo.LoadedPdbName, '\\');
if(fileName)
fileName[1] = '\0';
if(pdbFileName)
pdbFileName[1] = '\0';
// Copy back to the caller's buffer
strcpy_s(FileName, MAX_STRING_SIZE, modInfo.LoadedPdbName);

View File

@ -490,7 +490,7 @@ void CPUDisassembly::setupRightClickContextMenu()
mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
this->addAction(mCopyAddress);
connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddress()));
mCopyDisassembly = new QAction("Disassembly", this);
connect(mCopyDisassembly, SIGNAL(triggered()), this, SLOT(copyDisassembly()));