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:
parent
1ae99f2e67
commit
ac684352e6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue