Fix warning and regression

This commit is contained in:
Jesús Sanz del Rey 2024-05-15 21:26:25 +02:00
parent 39b1046357
commit 7802513a5b
No known key found for this signature in database
GPG key ID: CE5EA6FC54AAB4F0

View file

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