- Store the address file handle in the IOSB
authorCameron Gutman <aicommander@gmail.com>
Sat, 9 Jan 2010 15:49:39 +0000 (15:49 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 9 Jan 2010 15:49:39 +0000 (15:49 +0000)
 - MSAFD relies on this behavior to store the address file handle

svn path=/branches/aicom-network-branch/; revision=45015

drivers/network/afd/afd/bind.c

index c574a75..f2c2f4d 100644 (file)
@@ -101,6 +101,7 @@ AfdBindSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
     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 );
 }