mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-27 21:43:29 +01:00
Change TrueCrypt to VeraCrypt in some comments
This commit is contained in:
parent
4d12001e10
commit
31fd16979f
@ -906,7 +906,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Determine if the first sector contains a portion of the TrueCrypt Boot Loader
|
// Determine if the first sector contains a portion of the VeraCrypt Boot Loader
|
||||||
|
|
||||||
offset.QuadPart = 0;
|
offset.QuadPart = 0;
|
||||||
|
|
||||||
@ -926,7 +926,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
|||||||
|
|
||||||
if (opentest->bDetectTCBootLoader && IoStatus.Information >= TC_SECTOR_SIZE_BIOS)
|
if (opentest->bDetectTCBootLoader && IoStatus.Information >= TC_SECTOR_SIZE_BIOS)
|
||||||
{
|
{
|
||||||
// Search for the string "TrueCrypt"
|
// Search for the string "VeraCrypt"
|
||||||
for (i = 0; i < TC_SECTOR_SIZE_BIOS - strlen (TC_APP_NAME); ++i)
|
for (i = 0; i < TC_SECTOR_SIZE_BIOS - strlen (TC_APP_NAME); ++i)
|
||||||
{
|
{
|
||||||
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
|
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
|
||||||
@ -995,7 +995,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
|||||||
|
|
||||||
if (NT_SUCCESS (ntStatus))
|
if (NT_SUCCESS (ntStatus))
|
||||||
{
|
{
|
||||||
// Determine if the first sector contains a portion of the TrueCrypt Boot Loader
|
// Determine if the first sector contains a portion of the VeraCrypt Boot Loader
|
||||||
offset.QuadPart = 0; // MBR
|
offset.QuadPart = 0; // MBR
|
||||||
|
|
||||||
ntStatus = ZwReadFile (NtFileHandle,
|
ntStatus = ZwReadFile (NtFileHandle,
|
||||||
@ -1033,7 +1033,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
|
|||||||
request->UserConfiguration = 0;
|
request->UserConfiguration = 0;
|
||||||
request->CustomUserMessage[0] = 0;
|
request->CustomUserMessage[0] = 0;
|
||||||
|
|
||||||
// Search for the string "TrueCrypt"
|
// Search for the string "VeraCrypt"
|
||||||
for (i = 0; i < sizeof (readBuffer) - strlen (TC_APP_NAME); ++i)
|
for (i = 0; i < sizeof (readBuffer) - strlen (TC_APP_NAME); ++i)
|
||||||
{
|
{
|
||||||
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
|
if (memcmp (readBuffer + i, TC_APP_NAME, strlen (TC_APP_NAME)) == 0)
|
||||||
|
@ -275,7 +275,7 @@ namespace TrueCrypt
|
|||||||
|
|
||||||
if (!partitionInSystemEncryptionScope && GetPath().IsDevice())
|
if (!partitionInSystemEncryptionScope && GetPath().IsDevice())
|
||||||
{
|
{
|
||||||
// Check if the device contains TrueCrypt Boot Loader
|
// Check if the device contains VeraCrypt Boot Loader
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
File driveDevice;
|
File driveDevice;
|
||||||
@ -284,7 +284,7 @@ namespace TrueCrypt
|
|||||||
Buffer mbr (VolumeFile->GetDeviceSectorSize());
|
Buffer mbr (VolumeFile->GetDeviceSectorSize());
|
||||||
driveDevice.ReadAt (mbr, 0);
|
driveDevice.ReadAt (mbr, 0);
|
||||||
|
|
||||||
// Search for the string "TrueCrypt"
|
// Search for the string "VeraCrypt"
|
||||||
size_t nameLen = strlen (TC_APP_NAME);
|
size_t nameLen = strlen (TC_APP_NAME);
|
||||||
for (size_t i = 0; i < mbr.Size() - nameLen; ++i)
|
for (size_t i = 0; i < mbr.Size() - nameLen; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user