summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_windows.cpp
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-09-14 13:02:30 -0400
committer GitHub <noreply@github.com>2022-09-15 03:02:30 +1000
commit3737b424d6c8ef4fb3ea393e9407361a7e095d94 (patch)
tree732c524436f789780bec41c832e33e2cc99ac3ef /src/osd/modules/font/font_windows.cpp
parent81e5abf05222ce96c70ea29e9ffed3922afcc811 (diff)
util/corestr.cpp: Changed core_stricmp to take std::string_view parameters. (#10287)
Note that the implementation is still not UTF-8 aware.
Diffstat (limited to '')
-rw-r--r--src/osd/modules/font/font_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/font/font_windows.cpp b/src/osd/modules/font/font_windows.cpp
index 8e0bd568349..b11ffe75111 100644
--- a/src/osd/modules/font/font_windows.cpp
+++ b/src/osd/modules/font/font_windows.cpp
@@ -109,7 +109,7 @@ bool osd_font_windows::open(std::string const &font_path, std::string const &_na
// if it doesn't match our request, fail
std::string utf = osd::text::from_tstring(&realname[0]);
- int result = core_stricmp(utf.c_str(), name.c_str());
+ int result = core_stricmp(utf, name);
// if we didn't match, nuke our font and fall back
if (result != 0)