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
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 1 additions and 1 deletions

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