VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-18 08:38:02 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-18 08:38:02 +0200
commit34b00fa82511d4749bd49f41b3edd72f5f586b8a (patch)
treef08ebb47ccb4dc7d2b2a63f67bc241cbfa34529b /src/Common/Dlgcode.c
parentc0785aa1d4b6d988f175ca5732641e6ae2b10cc7 (diff)
downloadVeraCrypt-34b00fa82511d4749bd49f41b3edd72f5f586b8a.tar.gz
VeraCrypt-34b00fa82511d4749bd49f41b3edd72f5f586b8a.zip
Windows: Fix compiler warnings
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 2cf61415..32e1617d 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -9088,8 +9088,7 @@ retry:
{
if (mount.wszVolume == NULL || swscanf_s ((const wchar_t *) mount.wszVolume,
WIDE("\\Device\\Harddisk%d\\Partition"),
- &mount.nPartitionInInactiveSysEncScopeDriveNo,
- sizeof(mount.nPartitionInInactiveSysEncScopeDriveNo)) != 1)
+ &mount.nPartitionInInactiveSysEncScopeDriveNo) != 1)
{
if (!quiet)
Warning ("NO_SYSENC_PARTITION_SELECTED", hwndDlg);