VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 09:07:51 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 15:28:19 (GMT)
commit46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611 (patch)
tree848348ef001de15833d5d27c7efcc33851eae2d2 /src/Common
parent6ed97738946b5ed7acd28116972a1fe720debc3d (diff)
downloadVeraCrypt-46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611.zip
VeraCrypt-46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611.tar.gz
Windows: fix compiler warnings
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/BootEncryption.cpp2
-rw-r--r--src/Common/Combo.c2
-rw-r--r--src/Common/Dlgcode.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index 1c68a2f..b2ab9f2 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -2223,8 +2223,6 @@ namespace VeraCrypt
}
void EfiBoot::MountBootPartition(WCHAR letter) {
- NTSTATUS res;
- ULONG len;
if (!bBootVolumePathSelected) {
SelectBootVolumeESP();
}
diff --git a/src/Common/Combo.c b/src/Common/Combo.c
index 50e9761..ab550a1 100644
--- a/src/Common/Combo.c
+++ b/src/Common/Combo.c
@@ -142,7 +142,7 @@ void LoadCombo (HWND hComboBox, BOOL bEnabled, BOOL bOnlyCheckModified, BOOL *pb
char *xml = history;
char volume[MAX_PATH];
int i, nComboIdx[SIZEOF_MRU_LIST] = {0};
- int count = SendMessage (hComboBox, CB_GETCOUNT, 0, 0);
+ int count = (int) SendMessage (hComboBox, CB_GETCOUNT, 0, 0);
if (xml == NULL)
{
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index f21d551..ccd44e1 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -3416,7 +3416,7 @@ BOOL CALLBACK TextEditDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
if (!prm->ReadOnly)
{
prm->Text.resize(GetWindowTextLengthA (GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT)) + 1);
- GetWindowTextA (GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), &(prm->Text)[0], prm->Text.size());
+ GetWindowTextA (GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), &(prm->Text)[0], (int) prm->Text.size());
}
NormalCursor ();
EndDialog (hwndDlg, IDOK);