Fix a bug introduced with the full path title
This commit is contained in:
parent
3787d7d750
commit
e0fe0f2bd2
|
@ -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
|
||||
bool bNewWindowLongPath = settingboolget("Gui", "WindowLongPath");
|
||||
if(DbgIsDebugging() && bWindowLongPath != bNewWindowLongPath)
|
||||
if(bWindowLongPath != bNewWindowLongPath)
|
||||
{
|
||||
bWindowLongPath = bNewWindowLongPath;
|
||||
duint addr = 0;
|
||||
SELECTIONDATA selection;
|
||||
if(GuiSelectionGet(GUI_DISASSEMBLY, &selection))
|
||||
addr = selection.start;
|
||||
else
|
||||
addr = GetContextDataEx(hActiveThread, UE_CIP);
|
||||
DebugUpdateTitleAsync(addr, false);
|
||||
if(DbgIsDebugging())
|
||||
{
|
||||
duint addr = 0;
|
||||
SELECTIONDATA selection;
|
||||
if(GuiSelectionGet(GUI_DISASSEMBLY, &selection))
|
||||
addr = selection.start;
|
||||
else
|
||||
addr = GetContextDataEx(hActiveThread, UE_CIP);
|
||||
DebugUpdateTitleAsync(addr, false);
|
||||
}
|
||||
}
|
||||
|
||||
if(BridgeSettingGet("Symbols", "CachePath", settingText.data()))
|
||||
|
|
Loading…
Reference in New Issue