Changelog: * dlls\shell32\changenotify.c Do no access memory that has just been freed. License: X11 / LGPL Author: Knut St. Osmundsen <bird@anduin.net> (ODIN) --- changenotify.co Sun Jun 2 13:32:54 2002 +++ changenotify.c Thu Jun 27 09:38:22 2002 @@ -113,7 +113,7 @@ EnterCriticalSection(&SHELL32_ChangenotifyCS); ptr = head.next; - while((ptr != &tail) && (ret == FALSE)) + while(ptr != &tail) { TRACE("ptr=%p\n", ptr); @@ -131,7 +131,9 @@ for (i=0; i<item->cidl;i++) SHFree(item->apidl[i].pidlPath); SHFree(item->apidl); SHFree(item); - ret = TRUE; + + ret = TRUE; + break; } ptr = ptr->next; }