mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows Driver: fix regression that was causing BSOD.
This commit is contained in:
parent
0b5dc7910b
commit
162d3b5f64
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user