removing unnecessary copy in readdir

This commit is contained in:
Olga Kornievskaia 2011-09-02 15:48:31 -04:00 committed by unknown
parent c5878eb662
commit e3cbc70f14

View file

@ -3279,8 +3279,6 @@ NTSTATUS nfs41_QueryDirectory (
RxContext->InformationToReturn = entry->u.QueryFile.buf_len; RxContext->InformationToReturn = entry->u.QueryFile.buf_len;
status = STATUS_BUFFER_TOO_SMALL; status = STATUS_BUFFER_TOO_SMALL;
} else if (entry->status == STATUS_SUCCESS) { } else if (entry->status == STATUS_SUCCESS) {
RtlCopyMemory(RxContext->Info.Buffer, entry->u.QueryFile.buf,
entry->u.QueryFile.buf_len);
RxContext->Info.LengthRemaining -= entry->u.QueryFile.buf_len; RxContext->Info.LengthRemaining -= entry->u.QueryFile.buf_len;
status = STATUS_SUCCESS; status = STATUS_SUCCESS;
} else { } else {