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/ma…
==============================================================================
--- 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 );