diff options
Diffstat (limited to 'src/frontend/mame/ui/dirmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/dirmenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/dirmenu.cpp b/src/frontend/mame/ui/dirmenu.cpp index 1d63fb1cdde..2e27b34675e 100644 --- a/src/frontend/mame/ui/dirmenu.cpp +++ b/src/frontend/mame/ui/dirmenu.cpp @@ -317,7 +317,7 @@ void menu_add_change_folder::handle() const menu_item &pitem = item[index]; // go up to the parent path - if (!strcmp(pitem.text, "..")) + if (!strcmp(pitem.text.c_str(), "..")) { size_t first_sep = m_current_path.find_first_of(PATH_SEPARATOR[0]); size_t last_sep = m_current_path.find_last_of(PATH_SEPARATOR[0]); @@ -327,7 +327,7 @@ void menu_add_change_folder::handle() else { // if isn't a drive, appends the directory - if (strcmp(pitem.subtext, "[DRIVE]") != 0) + if (strcmp(pitem.subtext.c_str(), "[DRIVE]") != 0) { if (m_current_path[m_current_path.length() - 1] == PATH_SEPARATOR[0]) m_current_path.append(pitem.text); @@ -414,7 +414,7 @@ void menu_add_change_folder::handle() int match = 0; for (int i = 0; i < ARRAY_LENGTH(m_search); i++) { - if (core_strnicmp(item[entry].text, m_search, i) == 0) + if (core_strnicmp(item[entry].text.c_str(), m_search, i) == 0) match = i; } @@ -433,7 +433,7 @@ void menu_add_change_folder::handle() int match = 0; for (int i = 0; i < ARRAY_LENGTH(m_search); i++) { - if (core_strnicmp(item[entry].text, m_search, i) == 0) + if (core_strnicmp(item[entry].text.c_str(), m_search, i) == 0) match = i; } |