VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-27 13:08:56 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-10-27 13:10:18 +0100
commitac684352e69bbdb06f42e19c69b4415cf27bbdbf (patch)
treeaadf188435c4c3e91a2aac7ea899a9e507107790
parent1ae99f2e67eb5e613ae577714dcf4240d9f232de (diff)
downloadVeraCrypt-ac684352e69bbdb06f42e19c69b4415cf27bbdbf.tar.gz
VeraCrypt-ac684352e69bbdb06f42e19c69b4415cf27bbdbf.zip
Windows: use strcmp to compare effective content of std::string since == operator may return false if one of the strins has an extra \0 at the end.VeraCrypt_1.24-Hotfix1
-rw-r--r--src/Mount/Mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 686a83b1..833dbe01 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -11720,7 +11720,7 @@ static BOOL CALLBACK BootLoaderPreferencesDlgProc (HWND hwndDlg, UINT msg, WPARA
while (TextEditDialogBox(FALSE, hwndDlg, GetString ("BOOT_LOADER_CONFIGURATION_FILE"), dcsprop) == IDOK)
{
- if (dcsprop == currentDcsprop)
+ if (0 == strcmp(dcsprop.c_str(), currentDcsprop.c_str()))
{
break;
}