VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-09 21:33:22 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-14 23:09:15 (GMT)
commitb51d8f5386da944fa4c6a40634ca550cadff662b (patch)
tree645193f6f0965876885eaec2d01d07e16e4e9f15 /src/Driver
parentb146e235f893b62befc413ff547ee7bfba0de5c9 (diff)
downloadVeraCrypt-b51d8f5386da944fa4c6a40634ca550cadff662b.zip
VeraCrypt-b51d8f5386da944fa4c6a40634ca550cadff662b.tar.gz
Windows: fix Windows 10 hibernate issue when EFI system encryption is active.
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 ce3365d..ff570b1 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;