From ac684352e69bbdb06f42e19c69b4415cf27bbdbf Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 27 Oct 2019 13:08:56 +0100 Subject: 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. --- src/Mount/Mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3