Windows: Fix compiler warnings

This commit is contained in:
Mounir IDRASSI 2023-07-18 08:38:02 +02:00
parent c0785aa1d4
commit 34b00fa825
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
2 changed files with 1 additions and 3 deletions

View File

@ -9088,8 +9088,7 @@ int MountVolume (HWND hwndDlg,
{
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);

View File

@ -348,7 +348,6 @@ void DetectX86Features()
g_hasISSE = 1;
else
{
uint32 cpuid2[4] = {0};
CpuId(0x080000000, cpuid2);
if (cpuid2[0] >= 0x080000001)
{