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 +-- src/Crypto/cpu.c | 1 - 2 files changed, 1 insertion(+), 3 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); diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index c3a769c8..effde6ba 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -348,7 +348,6 @@ void DetectX86Features() g_hasISSE = 1; else { - uint32 cpuid2[4] = {0}; CpuId(0x080000000, cpuid2); if (cpuid2[0] >= 0x080000001) { -- cgit v1.2.3