returning buffer_overflow instead of too_small
This commit is contained in:
parent
83cab313f0
commit
4bfb05adac
1 changed files with 4 additions and 2 deletions
|
|
@ -4141,8 +4141,10 @@ NTSTATUS nfs41_QueryVolumeInformation(
|
||||||
if (pVNetRootContext->FsAttrsLen) {
|
if (pVNetRootContext->FsAttrsLen) {
|
||||||
const LONG len = pVNetRootContext->FsAttrsLen;
|
const LONG len = pVNetRootContext->FsAttrsLen;
|
||||||
if (RxContext->Info.LengthRemaining < len) {
|
if (RxContext->Info.LengthRemaining < len) {
|
||||||
RxContext->InformationToReturn = len;
|
RtlCopyMemory(RxContext->Info.Buffer,
|
||||||
status = STATUS_BUFFER_TOO_SMALL;
|
pVNetRootContext->FsAttrs,
|
||||||
|
RxContext->Info.LengthRemaining);
|
||||||
|
status = STATUS_BUFFER_OVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
RtlCopyMemory(RxContext->Info.Buffer,
|
RtlCopyMemory(RxContext->Info.Buffer,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue