[CLASS2]: Fix status code on too small as exposed by kernel32:DeviceIoControl

This commit is contained in:
Pierre Schweitzer 2017-10-04 21:13:25 +02:00 committed by GitHub
parent 9f8693a4e4
commit 75f1637f37

View file

@ -4059,9 +4059,9 @@ Return Value:
if (irpStack->Parameters.DeviceIoControl.OutputBufferLength < sizeof(MOUNTDEV_NAME)) {
Irp->IoStatus.Information = 0;
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
status = STATUS_BUFFER_TOO_SMALL;
status = STATUS_INVALID_PARAMETER;
goto SetStatusAndReturn;
}