VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-09 01:37:09 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-09 01:38:34 +0200
commit0cf2885e8487afd9ac7d4907ad959a4e2c796cc1 (patch)
tree9768c7d893a413f42f91a773d6b210e8baace08d
parentf9c3bcd384622abe38a141b1035fede90b2d595a (diff)
downloadVeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.tar.gz
VeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.zip
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 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)