VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-09 23:08:50 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-09 23:26:18 (GMT)
commit4a5154e750fe5f5d764664328dd15c2deafa57b1 (patch)
tree9de93f5299cc487ab41077e0bda164c63ff76bb0 /src/Driver
parentb3646b323763441359cb953ebd78ef22f9ce428e (diff)
downloadVeraCrypt-4a5154e750fe5f5d764664328dd15c2deafa57b1.zip
VeraCrypt-4a5154e750fe5f5d764664328dd15c2deafa57b1.tar.gz
Windows Driver: fix wrongly reported bad sectors by chkdsk caused by a bug in IOCTL_DISK_VERIFY. There was no real issue in sectors.
Diffstat (limited to 'src/Driver')
-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 402301c..2b0c035 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -752,7 +752,7 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION
&ullNewOffset);
if (hResult != S_OK)
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
- else if (S_OK != ULongLongAdd(ullNewOffset, (ULONGLONG) pVerifyInformation->Length, &ullEndOffset))
+ else if (S_OK != ULongLongAdd(ullStartingOffset, (ULONGLONG) pVerifyInformation->Length, &ullEndOffset))
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
else if (ullEndOffset > (ULONGLONG) Extension->DiskLength)
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;