Windows Driver: fix regression that was causing BSOD.

This commit is contained in:
Mounir IDRASSI 2018-10-09 14:48:11 +02:00
parent 0b5dc7910b
commit 162d3b5f64
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -2043,7 +2043,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
request->CustomUserMessage[0] = 0;
// Search for the string "VeraCrypt"
for (i = 0; i < sizeof (readBuffer) - 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)
{