1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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.

This commit is contained in:
Mounir IDRASSI
2019-10-27 13:08:56 +01:00
parent 1ae99f2e67
commit ac684352e6

View File

@@ -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;
}