indicatorhelper: fix incompatibility warning for PROCESSENTRY object

This commit is contained in:
Piyush Aggarwal 2021-05-27 12:00:20 +05:30
parent e8563388e4
commit f012610ba4

View file

@ -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) {