1
0
Fork 0

Fix a bug introduced with the full path title

This commit is contained in:
Duncan Ogilvie 2023-03-02 18:16:00 +01:00
parent 3787d7d750
commit e0fe0f2bd2
1 changed files with 11 additions and 8 deletions

View File

@ -1202,16 +1202,19 @@ extern "C" DLL_EXPORT duint _dbg_sendmessage(DBGMSG type, void* param1, void* pa
// check if we need to change the main window title // check if we need to change the main window title
bool bNewWindowLongPath = settingboolget("Gui", "WindowLongPath"); bool bNewWindowLongPath = settingboolget("Gui", "WindowLongPath");
if(DbgIsDebugging() && bWindowLongPath != bNewWindowLongPath) if(bWindowLongPath != bNewWindowLongPath)
{ {
bWindowLongPath = bNewWindowLongPath; bWindowLongPath = bNewWindowLongPath;
duint addr = 0; if(DbgIsDebugging())
SELECTIONDATA selection; {
if(GuiSelectionGet(GUI_DISASSEMBLY, &selection)) duint addr = 0;
addr = selection.start; SELECTIONDATA selection;
else if(GuiSelectionGet(GUI_DISASSEMBLY, &selection))
addr = GetContextDataEx(hActiveThread, UE_CIP); addr = selection.start;
DebugUpdateTitleAsync(addr, false); else
addr = GetContextDataEx(hActiveThread, UE_CIP);
DebugUpdateTitleAsync(addr, false);
}
} }
if(BridgeSettingGet("Symbols", "CachePath", settingText.data())) if(BridgeSettingGet("Symbols", "CachePath", settingText.data()))