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