[ros-diffs] [cgutman] 45015: - Store the address file handle in the IOSB - MSAFD relies on this behavior to store the address file handle

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Jan 9 16:49:39 CET 2010


Author: cgutman
Date: Sat Jan  9 16:49:39 2010
New Revision: 45015

URL: http://svn.reactos.org/svn/reactos?rev=45015&view=rev
Log:
 - Store the address file handle in the IOSB
 - MSAFD relies on this behavior to store the address file handle

Modified:
    branches/aicom-network-branch/drivers/network/afd/afd/bind.c

Modified: branches/aicom-network-branch/drivers/network/afd/afd/bind.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/drivers/network/afd/afd/bind.c?rev=45015&r1=45014&r2=45015&view=diff
==============================================================================
--- branches/aicom-network-branch/drivers/network/afd/afd/bind.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/drivers/network/afd/afd/bind.c [iso-8859-1] Sat Jan  9 16:49:39 2010
@@ -101,6 +101,7 @@
     if (NT_SUCCESS(Status))
         FCB->State = SOCKET_STATE_BOUND;
 
-    return UnlockAndMaybeComplete( FCB, Status, Irp, 0 );
+    /* MSAFD relies on us returning the address file handle in the IOSB */
+    return UnlockAndMaybeComplete( FCB, Status, Irp, (ULONG_PTR)FCB->AddressFile.Handle );
 }
 




More information about the Ros-diffs mailing list