Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 141 of file main.c.
Referenced by AfdDispatch().
{ PFILE_OBJECT FileObject = IrpSp->FileObject; PAFD_FCB FCB = FileObject->FsContext; UINT BufferSize = IrpSp->Parameters.DeviceIoControl.OutputBufferLength; if (!SocketAcquireStateLock(FCB)) return LostSocket(Irp); if (FCB->DisconnectDataSize == 0) { AFD_DbgPrint(MIN_TRACE,("Invalid parameter\n")); return UnlockAndMaybeComplete(FCB, STATUS_INVALID_PARAMETER, Irp, 0); } ASSERT(FCB->DisconnectData); if (FCB->FilledDisconnectData < BufferSize) BufferSize = FCB->FilledDisconnectData; RtlCopyMemory(Irp->UserBuffer, FCB->DisconnectData, BufferSize); return UnlockAndMaybeComplete(FCB, STATUS_SUCCESS, Irp, BufferSize); }