PATCH: DeleteNode (dlls\shell32\changenotify.c)

Sander van Leeuwen sandervl at xs4all.nl
Thu Jun 27 02:46:07 CDT 2002


Changelog:
* dlls\shell32\changenotify.c
Do no access memory that has just been freed.

License: X11 / LGPL

Author:
Knut St. Osmundsen <bird at 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;
 	}





More information about the wine-patches mailing list