From 34b00fa82511d4749bd49f41b3edd72f5f586b8a Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 18 Jul 2023 08:38:02 +0200 Subject: Windows: Fix compiler warnings --- src/Common/Dlgcode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Common') 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); -- cgit v1.2.3