diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-10-09 14:48:11 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-10-10 09:31:41 +0200 |
commit | 162d3b5f64d0e1849c566898854cb9fbc0d8ebc2 (patch) | |
tree | 6979f827c46760bba00fae0fa262fb1899482768 /src/Driver | |
parent | 0b5dc7910b4be2631f3c6ddcb08903879ec9a544 (diff) | |
download | VeraCrypt-162d3b5f64d0e1849c566898854cb9fbc0d8ebc2.tar.gz VeraCrypt-162d3b5f64d0e1849c566898854cb9fbc0d8ebc2.zip |
Windows Driver: fix regression that was causing BSOD.
Diffstat (limited to 'src/Driver')
-rw-r--r-- | src/Driver/Ntdriver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index a86fc95b..582df290 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -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) { |