VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-10-09 12:48:11 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-10-10 07:31:41 (GMT)
commit162d3b5f64d0e1849c566898854cb9fbc0d8ebc2 (patch)
tree6979f827c46760bba00fae0fa262fb1899482768
parent0b5dc7910b4be2631f3c6ddcb08903879ec9a544 (diff)
downloadVeraCrypt-162d3b5f64d0e1849c566898854cb9fbc0d8ebc2.zip
VeraCrypt-162d3b5f64d0e1849c566898854cb9fbc0d8ebc2.tar.gz
Windows Driver: fix regression that was causing BSOD.
-rw-r--r--src/Driver/Ntdriver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index a86fc95..582df29 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)
{