1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-19 02:56:07 -05:00

Windows: Block Windows from resizing system partition if it is encrypted. This avoid issues during Windows Upgrade that sometimes resizes system partition which create problems if it is encrypted by VeraCrypt

This commit is contained in:
Mounir IDRASSI
2021-02-27 23:05:40 +01:00
parent c1e81d9692
commit c6d63e9365
3 changed files with 45 additions and 18 deletions
+5
View File
@@ -1046,6 +1046,11 @@ static NTSTATUS DispatchControl (PDEVICE_OBJECT DeviceObject, PIRP Irp, DriveFil
}
}
break;
case IOCTL_DISK_GROW_PARTITION:
Dump ("DriverFilter-DispatchControl: IOCTL_DISK_GROW_PARTITION blocked\n");
IoReleaseRemoveLock (&Extension->Queue.RemoveLock, Irp);
return TCCompleteDiskIrp (Irp, STATUS_UNSUCCESSFUL, 0);
break;
}
status = PassIrp (Extension->LowerDeviceObject, Irp);