[AFD] Mark the socket as named pipe, so NtWriteFile actually knows what to do with it.
[reactos.git] / drivers / network / afd / afd / main.c
index 8f3886e..04e2865 100644 (file)
@@ -313,6 +313,7 @@ AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
 
     DeviceExt = DeviceObject->DeviceExtension;
     FileObject = IrpSp->FileObject;
+    FileObject->Flags |= FO_NAMED_PIPE;
     //Disposition = (IrpSp->Parameters.Create.Options >> 24) & 0xff;
 
     Irp->IoStatus.Information = 0;