From 67ef8e3eafa688a9fa83fb1620ad8f2547c03f3c Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Fri, 2 Oct 2020 22:53:48 +0300 Subject: [PATCH] Fix thread num in handles view --- src/gui/Src/Gui/HandlesView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Src/Gui/HandlesView.cpp b/src/gui/Src/Gui/HandlesView.cpp index 639df185..91c3554b 100644 --- a/src/gui/Src/Gui/HandlesView.cpp +++ b/src/gui/Src/Gui/HandlesView.cpp @@ -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));