[ros-diffs] [dgorbachev] 39292: Move hack to other place because of bug #4120.

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Mon Feb 2 23:31:55 CET 2009


Author: dgorbachev
Date: Mon Feb  2 16:31:54 2009
New Revision: 39292

URL: http://svn.reactos.org/svn/reactos?rev=39292&view=rev
Log:
Move hack to other place because of bug #4120.

Modified:
    trunk/reactos/drivers/network/afd/afd/main.c

Modified: trunk/reactos/drivers/network/afd/afd/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/main.c?rev=39292&r1=39291&r2=39292&view=diff
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] Mon Feb  2 16:31:54 2009
@@ -224,6 +224,12 @@
     if( FCB->TdiDeviceName.Buffer )
 	ExFreePool(FCB->TdiDeviceName.Buffer);
 
+    /* HACK HACK HACK */
+    TdiCloseDevice( FCB->Connection.Handle,
+		    FCB->Connection.Object );
+    TdiCloseDevice( FCB->AddressFile.Handle,
+		    FCB->AddressFile.Object );
+
     ExFreePool(FCB);
     AFD_DbgPrint(MIN_TRACE,("Deleted (%x)\n", FCB));
 
@@ -247,12 +253,6 @@
     KillSelectsForFCB( FCB->DeviceExt, FileObject, FALSE );
 
     if( FCB->EventSelect ) ObDereferenceObject( FCB->EventSelect );
-
-    /* HACK HACK HACK */
-    TdiCloseDevice( FCB->Connection.Handle,
-		    FCB->Connection.Object );
-    TdiCloseDevice( FCB->AddressFile.Handle,
-		    FCB->AddressFile.Object );
 
     FileObject->FsContext = NULL;
     DestroySocket( FCB );



More information about the Ros-diffs mailing list