1
0
Fork 0

DBG: fixed the title when there is no module

This commit is contained in:
Mr. eXoDia 2014-07-18 16:29:49 +02:00
parent d152b111bf
commit 54538dccf2
1 changed files with 3 additions and 1 deletions

View File

@ -192,8 +192,10 @@ void DebugUpdateGui(uint disasm_addr, bool stack)
char modname[MAX_MODULE_SIZE]="";
if(!modnamefromaddr(disasm_addr, modname, true))
*modname=0;
else
sprintf(modname, "Module: %s - ", modname);
char title[1024]="";
sprintf(title, "File: %s - PID: %X - Module: %s - Thread: %X", szBaseFileName, fdProcessInfo->dwProcessId, modname, ((DEBUG_EVENT*)GetDebugData())->dwThreadId);
sprintf(title, "File: %s - PID: %X - %sThread: %X", szBaseFileName, fdProcessInfo->dwProcessId, modname, ((DEBUG_EVENT*)GetDebugData())->dwThreadId);
GuiUpdateWindowTitle(title);
GuiUpdateAllViews();
}