Skip to content

Commit 47467db

Browse files
committed
fixup! FSUI: Use locale sensitive sort for game list
1 parent a16aded commit 47467db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ctest/core/StubHost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void Host::OpenHostFileSelectorAsync(std::string_view title, bool select_directo
273273

274274
int Host::LocaleSensitiveCompare(std::string_view lhs, std::string_view rhs)
275275
{
276-
int res = std::strncmp(lhs, rhs, std::min(lhs.size(), rhs.size()));
276+
int res = std::strncmp(lhs.data(), rhs.data(), std::min(lhs.size(), rhs.size()));
277277
if (res != 0)
278278
return res;
279279
return lhs.size() > rhs.size() ? 1 : lhs.size() < rhs.size() ? -1 : 0;

0 commit comments

Comments
 (0)