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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user