Fix return code when buffer is too small, as exposed in r74025.

CORE-12858

svn path=/trunk/; revision=74026
This commit is contained in:
Pierre Schweitzer 2017-03-02 19:39:07 +00:00
parent 04d0e17fdf
commit 2eb3e5db44

View file

@ -2062,7 +2062,7 @@ Return Value:
irpStack->Parameters.DeviceIoControl.OutputBufferLength < irpStack->Parameters.DeviceIoControl.OutputBufferLength <
sizeof(DISK_GEOMETRY_EX))) { sizeof(DISK_GEOMETRY_EX))) {
status = STATUS_INFO_LENGTH_MISMATCH; status = STATUS_BUFFER_TOO_SMALL;
break; break;
} }