Commit 886bdb0d authored by Knut St. Osmundsen's avatar Knut St. Osmundsen Committed by Alexandre Julliard

Do not access memory that has just been freed.

parent 7c4d6a98
......@@ -113,7 +113,7 @@ static BOOL DeleteNode(LPNOTIFICATIONLIST item)
EnterCriticalSection(&SHELL32_ChangenotifyCS);
ptr = head.next;
while((ptr != &tail) && (ret == FALSE))
while(ptr != &tail)
{
TRACE("ptr=%p\n", ptr);
......@@ -131,7 +131,9 @@ static BOOL DeleteNode(LPNOTIFICATIONLIST item)
for (i=0; i<item->cidl;i++) SHFree(item->apidl[i].pidlPath);
SHFree(item->apidl);
SHFree(item);
ret = TRUE;
break;
}
ptr = ptr->next;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment