mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: fix Windows 10 hibernate issue when EFI system encryption is active.
This commit is contained in:
@@ -94,7 +94,17 @@ NTSTATUS DumpFilterEntry (PFILTER_EXTENSION filterExtension, PFILTER_INITIALIZAT
|
|||||||
// Check dump volume is located within the scope of system encryption
|
// 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));
|
status = SendDeviceIoControlRequest (filterExtension->DeviceObject, IOCTL_DISK_GET_PARTITION_INFO, NULL, 0, &partitionInfo, sizeof (partitionInfo));
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
|
{
|
||||||
|
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;
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
|
// we only need starting offset
|
||||||
|
partitionInfo.StartingOffset = partitionInfoEx.StartingOffset;
|
||||||
|
}
|
||||||
|
|
||||||
DumpPartitionOffset = partitionInfo.StartingOffset;
|
DumpPartitionOffset = partitionInfo.StartingOffset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user