From 0cf2885e8487afd9ac7d4907ad959a4e2c796cc1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 9 Aug 2015 01:37:09 +0200 Subject: Windows: better error code when IOCTL_STORAGE_QUERY_PROPERTY type is not supported --- src/Driver/Ntdriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index 519fdc09..53bb9699 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -637,7 +637,7 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType; /* return error if an unsupported type is encountered */ - Irp->IoStatus.Status = STATUS_INVALID_PARAMETER; + Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST; Irp->IoStatus.Information = 0; if (type == PropertyExistsQuery) -- cgit v1.2.3