mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Signed-off-by: alt3r 3go <alt3r.3go@protonmail.com>
This commit is contained in:
committed by
Mounir IDRASSI
parent
b233e6776b
commit
1fd212016e
@@ -473,8 +473,10 @@ namespace VeraCrypt
|
||||
|
||||
if (options.Path->IsDevice())
|
||||
{
|
||||
if (volume->GetFile()->GetDeviceSectorSize() != volume->GetSectorSize())
|
||||
throw ParameterIncorrect (SRC_POS);
|
||||
const uint32 devSectorSize = volume->GetFile()->GetDeviceSectorSize();
|
||||
const size_t volSectorSize = volume->GetSectorSize();
|
||||
if (devSectorSize != volSectorSize)
|
||||
throw DeviceSectorSizeMismatch (SRC_POS, StringConverter::ToWide(devSectorSize) + L" != " + StringConverter::ToWide(volSectorSize));
|
||||
}
|
||||
|
||||
// Find a free mount point for FUSE service
|
||||
|
||||
Reference in New Issue
Block a user