diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-10 01:08:50 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-10 01:26:18 +0200 |
commit | 4a5154e750fe5f5d764664328dd15c2deafa57b1 (patch) | |
tree | 9de93f5299cc487ab41077e0bda164c63ff76bb0 /src/Driver | |
parent | b3646b323763441359cb953ebd78ef22f9ce428e (diff) | |
download | VeraCrypt-4a5154e750fe5f5d764664328dd15c2deafa57b1.tar.gz VeraCrypt-4a5154e750fe5f5d764664328dd15c2deafa57b1.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index 402301c3..2b0c0355 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;
|