VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/Driver')
-rw-r--r--src/Driver/DumpFilter.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Driver/DumpFilter.c b/src/Driver/DumpFilter.c
index ce3365d5..ff570b1e 100644
--- a/src/Driver/DumpFilter.c
+++ b/src/Driver/DumpFilter.c
@@ -94,7 +94,17 @@ NTSTATUS DumpFilterEntry (PFILTER_EXTENSION filterExtension, PFILTER_INITIALIZAT
// Check dump volume is located within the scope of system encryption
status = SendDeviceIoControlRequest (filterExtension->DeviceObject, IOCTL_DISK_GET_PARTITION_INFO, NULL, 0, &partitionInfo, sizeof (partitionInfo));
if (!NT_SUCCESS (status))
- goto err;
+ {
+ PARTITION_INFORMATION_EX partitionInfoEx;
+ status = SendDeviceIoControlRequest (filterExtension->DeviceObject, IOCTL_DISK_GET_PARTITION_INFO_EX, NULL, 0, &partitionInfoEx, sizeof (partitionInfoEx));
+ if (!NT_SUCCESS (status))
+ {
+ goto err;
+ }
+
+ // we only need starting offset
+ partitionInfo.StartingOffset = partitionInfoEx.StartingOffset;
+ }
DumpPartitionOffset = partitionInfo.StartingOffset;