From f012610ba4041bc0c5686724890f169f88f1aba8 Mon Sep 17 00:00:00 2001 From: Piyush Aggarwal Date: Thu, 27 May 2021 12:00:20 +0530 Subject: [PATCH] indicatorhelper: fix incompatibility warning for PROCESSENTRY object --- indicator/indicatorhelper_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indicator/indicatorhelper_win.cpp b/indicator/indicatorhelper_win.cpp index 0591c4862..fadaf4580 100644 --- a/indicator/indicatorhelper_win.cpp +++ b/indicator/indicatorhelper_win.cpp @@ -67,7 +67,7 @@ bool IndicatorHelper::terminateProcess(const QString &processName, const QUrl &i do { - if (QString::fromWCharArray(pe32.szExeFile) == processName) { + if (QString::fromWCharArray((wchar_t *)pe32.szExeFile) == processName) { hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID); if (hProcess == NULL) {