From 7802513a5be49b73786908e429e482e7d66c2aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Sanz=20del=20Rey?= Date: Wed, 15 May 2024 21:26:25 +0200 Subject: [PATCH] Fix warning and regression --- base/shell/explorer/taskswnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/shell/explorer/taskswnd.cpp b/base/shell/explorer/taskswnd.cpp index 03f7f6a2b76..639b9700350 100644 --- a/base/shell/explorer/taskswnd.cpp +++ b/base/shell/explorer/taskswnd.cpp @@ -1258,7 +1258,7 @@ public: else { WCHAR ExePath[MAX_PATH] = {0}; - GetProcessPath(dwProcessId, ExePath, _countof(ExePath)); + GetProcessPath(TaskGroup->dwProcessId, ExePath, _countof(ExePath)); if(!lstrcmpW(ExePath, ItemExePath)) { @@ -2297,9 +2297,9 @@ public: PTASK_GROUP TaskGroup = FindTaskGroupByIndex(TaskGroupOpened); PTASK_ITEM TaskItem, LastTaskItem = NULL; - LastTaskItem = TaskItem + m_TaskItemCount; TaskItem = m_TaskItems; + LastTaskItem = TaskItem + m_TaskItemCount; while (TaskItem != LastTaskItem) {