mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows Driver: fix BSOD when mounting hidden volume if RAM encryption is enabled
This commit is contained in:
@@ -591,10 +591,6 @@ NTSTATUS TCOpenVolume (PDEVICE_OBJECT DeviceObject,
|
|||||||
mount->VolumePim,
|
mount->VolumePim,
|
||||||
mount->bTrueCryptMode,
|
mount->bTrueCryptMode,
|
||||||
&Extension->cryptoInfo);
|
&Extension->cryptoInfo);
|
||||||
#ifdef _WIN64
|
|
||||||
if (IsRamEncryptionEnabled())
|
|
||||||
VcProtectKeys (Extension->cryptoInfo, VcGetEncryptionID (Extension->cryptoInfo));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadVolumeHeaderRecoveryMode = FALSE;
|
ReadVolumeHeaderRecoveryMode = FALSE;
|
||||||
@@ -611,6 +607,11 @@ NTSTATUS TCOpenVolume (PDEVICE_OBJECT DeviceObject,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN64
|
||||||
|
if (IsRamEncryptionEnabled())
|
||||||
|
VcProtectKeys (Extension->cryptoInfo, VcGetEncryptionID (Extension->cryptoInfo));
|
||||||
|
#endif
|
||||||
|
|
||||||
Dump ("Volume header decrypted\n");
|
Dump ("Volume header decrypted\n");
|
||||||
Dump ("Required program version = %x\n", (int) Extension->cryptoInfo->RequiredProgramVersion);
|
Dump ("Required program version = %x\n", (int) Extension->cryptoInfo->RequiredProgramVersion);
|
||||||
Dump ("Legacy volume = %d\n", (int) Extension->cryptoInfo->LegacyVolume);
|
Dump ("Legacy volume = %d\n", (int) Extension->cryptoInfo->LegacyVolume);
|
||||||
|
|||||||
Reference in New Issue
Block a user