1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-10 06:46:59 -05:00

Windows: Fix various compiler warnings

This commit is contained in:
Mounir IDRASSI
2024-11-15 00:41:07 +01:00
parent 117d8dd046
commit 43ad4f93eb
17 changed files with 315 additions and 301 deletions
+5 -5
View File
@@ -452,13 +452,13 @@ namespace VeraCrypt
case WM_CTLCOLORSTATIC:
{
HDC hdc = (HDC) wParam;
HWND hw = (HWND) lParam;
if (hw == GetDlgItem(hwndDlg, IDC_FAVORITE_VOLUME_ID))
HWND hwnd = (HWND) lParam;
if (hwnd == GetDlgItem(hwndDlg, IDC_FAVORITE_VOLUME_ID))
{
// This the favorite ID field. Make its background like normal edit
HBRUSH hbr = GetSysColorBrush (COLOR_WINDOW);
::SelectObject(hdc, hbr);
return (BOOL) hbr;
return (BOOL)(INT_PTR)hbr;
}
}
break;
@@ -731,7 +731,7 @@ namespace VeraCrypt
FavoritesOnArrivalMountRequired.clear();
foreach (const FavoriteVolume favorite, FavoriteVolumes)
for (const FavoriteVolume favorite: FavoriteVolumes)
{
if (favorite.MountOnArrival)
{
@@ -741,7 +741,7 @@ namespace VeraCrypt
{
bool present = false;
foreach (const FavoriteVolume favoriteConnected, FavoritesMountedOnArrivalStillConnected)
for (const FavoriteVolume favoriteConnected: FavoritesMountedOnArrivalStillConnected)
{
if (favorite.Path == favoriteConnected.Path)
{