summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/auditmenu.cpp
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-06-18 17:15:17 +0200
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-06-18 17:15:17 +0200
commitb4beaa37b744c8b2804ff398e373e035a7e8941c (patch)
tree93b7a1edcfb25197fce1028959f1f494fa3d461b /src/frontend/mame/ui/auditmenu.cpp
parent0213201d1d902f7f166afd8f0ded227b009dfc07 (diff)
parent1ad39fd8250863ff4c7f90e84d971db006085a17 (diff)
Merge remote-tracking branch 'mainline/master'
Diffstat (limited to 'src/frontend/mame/ui/auditmenu.cpp')
-rw-r--r--src/frontend/mame/ui/auditmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/auditmenu.cpp b/src/frontend/mame/ui/auditmenu.cpp
index 8c148c09c00..9a6a47c8fc8 100644
--- a/src/frontend/mame/ui/auditmenu.cpp
+++ b/src/frontend/mame/ui/auditmenu.cpp
@@ -27,8 +27,8 @@ inline int cs_stricmp(const char *s1, const char *s2)
{
for (;;)
{
- int c1 = tolower((UINT8)*s1++);
- int c2 = tolower((UINT8)*s2++);
+ int c1 = tolower(*s1++);
+ int c2 = tolower(*s2++);
if (c1 == 0 || c1 != c2)
return c1 - c2;
}
@@ -36,8 +36,8 @@ inline int cs_stricmp(const char *s1, const char *s2)
bool sorted_game_list(const game_driver *x, const game_driver *y)
{
- bool clonex = strcmp(x->parent, "0");
- bool cloney = strcmp(y->parent, "0");
+ bool clonex = (x->parent[0] != '0');
+ bool cloney = (y->parent[0] != '0');
if (!clonex && !cloney)
return (cs_stricmp(x->description, y->description) < 0);