1
0
Fork 0

Fix thread num in handles view

This commit is contained in:
justanotheranonymoususer 2020-10-02 22:53:48 +03:00 committed by Duncan Ogilvie
parent 04c2789d79
commit 67ef8e3eaf
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ void HandlesView::enumWindows()
mWindowsTable->setCellContent(i, 2, QString(windows[i].windowTitle));
mWindowsTable->setCellContent(i, 3, QString(windows[i].windowClass));
char threadname[MAX_THREAD_NAME_SIZE];
if(DbgFunctions()->ThreadGetName(windows[i].threadId, threadname))
if(DbgFunctions()->ThreadGetName(windows[i].threadId, threadname) && *threadname != '\0')
mWindowsTable->setCellContent(i, 4, QString::fromUtf8(threadname));
else if(Config()->getBool("Gui", "PidTidInHex"))
mWindowsTable->setCellContent(i, 4, ToHexString(windows[i].threadId));