mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[CLASS2]: Fix status code on too small as exposed by kernel32:DeviceIoControl
This commit is contained in:
parent
9f8693a4e4
commit
75f1637f37
1 changed files with 2 additions and 2 deletions
|
@ -4059,9 +4059,9 @@ Return Value:
|
||||||
if (irpStack->Parameters.DeviceIoControl.OutputBufferLength < sizeof(MOUNTDEV_NAME)) {
|
if (irpStack->Parameters.DeviceIoControl.OutputBufferLength < sizeof(MOUNTDEV_NAME)) {
|
||||||
|
|
||||||
Irp->IoStatus.Information = 0;
|
Irp->IoStatus.Information = 0;
|
||||||
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
|
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
status = STATUS_BUFFER_TOO_SMALL;
|
status = STATUS_INVALID_PARAMETER;
|
||||||
goto SetStatusAndReturn;
|
goto SetStatusAndReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue