Fix one test failure

svn path=/trunk/; revision=70312
This commit is contained in:
Pierre Schweitzer 2015-12-08 22:16:18 +00:00
parent 452bc55d4b
commit cba476574d

View file

@ -1672,7 +1672,8 @@ NTSTATUS DispTdiQueryIpHwAddress( PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STA
Irp->IoStatus.Information = 0;
if (IrpSp->Parameters.DeviceIoControl.InputBufferLength < 2 * sizeof(ULONG)) {
if (IrpSp->Parameters.DeviceIoControl.InputBufferLength < 2 * sizeof(ULONG) ||
IrpSp->Parameters.DeviceIoControl.OutputBufferLength == 0) {
Status = STATUS_INVALID_BUFFER_SIZE;
goto Exit;
}