1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: better error code when IOCTL_STORAGE_QUERY_PROPERTY type is not supported

This commit is contained in:
Mounir IDRASSI
2015-08-09 01:37:09 +02:00
parent f9c3bcd384
commit 0cf2885e84

View File

@@ -637,7 +637,7 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION
STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType; STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType;
/* return error if an unsupported type is encountered */ /* 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; Irp->IoStatus.Information = 0;
if (type == PropertyExistsQuery) if (type == PropertyExistsQuery)