mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-19 02:56:07 -05:00
Windows: Add registry setting to disable erasing encryption keys on Windows shutdown/reboot. This helps solve BSOD during shutdown/reboot on some machines.
Under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\veracrypt", create a REG_DWORD value named "VeraCryptEraseKeysShutdown" and set its value to 0.
This commit is contained in:
@@ -988,6 +988,7 @@ static NTSTATUS DispatchPower (PDEVICE_OBJECT DeviceObject, PIRP Irp, DriveFilte
|
||||
|
||||
// Dismount the system drive on shutdown on Windows 7 and later
|
||||
if (DriverShuttingDown
|
||||
&& EraseKeysOnShutdown
|
||||
&& IsOSAtLeast (WIN_7)
|
||||
&& Extension->BootDrive
|
||||
&& Extension->DriveMounted
|
||||
|
||||
Reference in New Issue
Block a user