mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Solve crash of TOR when run from VeraCrypt volume by explicitly returning error code when unsupported IOCTL_STORAGE_QUERY_PROPERTY parameter encountered.
This commit is contained in:
@@ -636,6 +636,10 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION
|
|||||||
PSTORAGE_PROPERTY_QUERY pStoragePropQuery = (PSTORAGE_PROPERTY_QUERY) Irp->AssociatedIrp.SystemBuffer;
|
PSTORAGE_PROPERTY_QUERY pStoragePropQuery = (PSTORAGE_PROPERTY_QUERY) Irp->AssociatedIrp.SystemBuffer;
|
||||||
STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType;
|
STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType;
|
||||||
|
|
||||||
|
/* return error if an unsupported type is encountered */
|
||||||
|
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
|
||||||
|
Irp->IoStatus.Information = 0;
|
||||||
|
|
||||||
if (type == PropertyExistsQuery)
|
if (type == PropertyExistsQuery)
|
||||||
{
|
{
|
||||||
if (pStoragePropQuery->PropertyId == StorageAccessAlignmentProperty)
|
if (pStoragePropQuery->PropertyId == StorageAccessAlignmentProperty)
|
||||||
|
|||||||
Reference in New Issue
Block a user