[CLASS2]: Fix status code on too small as exposed by kernel32:DeviceIoControl
authorPierre Schweitzer <pierre@reactos.org>
Wed, 4 Oct 2017 19:13:25 +0000 (21:13 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2017 19:13:25 +0000 (21:13 +0200)
drivers/storage/class/class2/class2.c

index 2f81022..52fdf53 100644 (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;
         }