From fd3f7f769ca154a6bd82a7ad89544c5feeca3893 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 24 Jan 2021 14:48:06 -0500 Subject: input.cpp, inputdev.cpp: Misc. fixes - Fix a recent regression with processing XInput DPAD input item tokens - Prevent code_to_token from blowing up in strange cases --- src/emu/inputdev.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/emu/inputdev.cpp') diff --git a/src/emu/inputdev.cpp b/src/emu/inputdev.cpp index 3ca876ff0d8..783bccf3a31 100644 --- a/src/emu/inputdev.cpp +++ b/src/emu/inputdev.cpp @@ -684,8 +684,7 @@ input_device_item::input_device_item(input_device &device, const char *name, voi else { // otherwise, create a tokenized name - m_token.assign(name); - strmakeupper(m_token); + m_token.assign(strmakeupper(name)); strdelchr(m_token, ' '); strdelchr(m_token, '_'); } -- cgit v1.2.3-70-g09d2