From b51d8f5386da944fa4c6a40634ca550cadff662b Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 9 Aug 2016 23:33:22 +0200 Subject: Windows: fix Windows 10 hibernate issue when EFI system encryption is active. --- src/Driver/DumpFilter.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/Driver') 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; -- cgit v1.2.3