Commit in reactos/drivers/net/afd/afd on MAIN
select.c+5-51.9 -> 1.10
Use ListEntry->Flink before ListEntry is freed by SignalSocket()

reactos/drivers/net/afd/afd
select.c 1.9 -> 1.10
diff -u -r1.9 -r1.10
--- select.c	25 Dec 2004 21:30:17 -0000	1.9
+++ select.c	27 Dec 2004 11:00:01 -0000	1.10
@@ -1,4 +1,4 @@
-/* $Id: select.c,v 1.9 2004/12/25 21:30:17 arty Exp $
+/* $Id: select.c,v 1.10 2004/12/27 11:00:01 gvg Exp $
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/net/afd/afd/select.c
@@ -91,11 +91,11 @@
     PAFD_POLL_INFO PollReq;
 
     KeAcquireSpinLock( &DeviceExt->Lock, &OldIrql );
-    
-    for( ListEntry = DeviceExt->Polls.Flink;
-	 ListEntry != &DeviceExt->Polls;
-	 ListEntry = ListEntry->Flink ) {
+
+    ListEntry = DeviceExt->Polls.Flink;
+    while ( ListEntry != &DeviceExt->Polls ) {
 	Poll = CONTAINING_RECORD(ListEntry, AFD_ACTIVE_POLL, ListEntry);
+	ListEntry = ListEntry->Flink;
 	if( Poll->Exclusive ) {
 	    Irp = Poll->Irp;
 	    PollReq = Irp->AssociatedIrp.SystemBuffer;
CVSspam 0.2.8