diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-27 13:08:56 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-27 13:10:18 +0100 |
commit | ac684352e69bbdb06f42e19c69b4415cf27bbdbf (patch) | |
tree | aadf188435c4c3e91a2aac7ea899a9e507107790 | |
parent | 1ae99f2e67eb5e613ae577714dcf4240d9f232de (diff) | |
download | VeraCrypt_1.24-Hotfix1.tar.gz VeraCrypt_1.24-Hotfix1.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.c | 2 |
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; } |