VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-08 23:37:09 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-08 23:38:34 (GMT)
commit0cf2885e8487afd9ac7d4907ad959a4e2c796cc1 (patch)
tree9768c7d893a413f42f91a773d6b210e8baace08d
parentf9c3bcd384622abe38a141b1035fede90b2d595a (diff)
downloadVeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.zip
VeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.tar.gz
Windows: better error code when IOCTL_STORAGE_QUERY_PROPERTY type is not supported
-rw-r--r--src/Driver/Ntdriver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 519fdc0..53bb969 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)