diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-08-09 01:37:09 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-08-09 01:38:34 +0200 |
commit | 0cf2885e8487afd9ac7d4907ad959a4e2c796cc1 (patch) | |
tree | 9768c7d893a413f42f91a773d6b210e8baace08d /src/Driver | |
parent | f9c3bcd384622abe38a141b1035fede90b2d595a (diff) | |
download | VeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.tar.gz VeraCrypt-0cf2885e8487afd9ac7d4907ad959a4e2c796cc1.zip |
Windows: better error code when IOCTL_STORAGE_QUERY_PROPERTY type is not supported
Diffstat (limited to 'src/Driver')
-rw-r--r-- | src/Driver/Ntdriver.c | 2 |
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)
|