Do not access memory that has just been freed.
This commit is contained in:
parent
7c4d6a98a9
commit
886bdb0dbc
|
@ -113,7 +113,7 @@ static BOOL DeleteNode(LPNOTIFICATIONLIST item)
|
||||||
EnterCriticalSection(&SHELL32_ChangenotifyCS);
|
EnterCriticalSection(&SHELL32_ChangenotifyCS);
|
||||||
|
|
||||||
ptr = head.next;
|
ptr = head.next;
|
||||||
while((ptr != &tail) && (ret == FALSE))
|
while(ptr != &tail)
|
||||||
{
|
{
|
||||||
TRACE("ptr=%p\n", ptr);
|
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);
|
for (i=0; i<item->cidl;i++) SHFree(item->apidl[i].pidlPath);
|
||||||
SHFree(item->apidl);
|
SHFree(item->apidl);
|
||||||
SHFree(item);
|
SHFree(item);
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue