path: root/src/osd/modules/input
diff options
author Vas Crabb <>2021-01-06 19:09:16 +1100
committer Vas Crabb <>2021-01-06 19:09:16 +1100
commit8228719f036324734b804b1488c6233fe14b0b36 (patch)
tree3957e5e8515d11eabc00558690f7b83cc23743fb /src/osd/modules/input
parent542cf128ba89e8554c6d595264b2b7b68b7fb25a (diff)
Tidy up loose ends:
* Fixed a couple of fixed-size buffers in Windows OSD code. * Marked MAME as aware of long paths in Windows manifest. * Made a cleaner, thread-safe API for getting volume names. * Added compile-time option to disable recompiler W^X mode. * NuBus image device current directory doesn't need to be pinned.
Diffstat (limited to 'src/osd/modules/input')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/input/input_rawinput.cpp b/src/osd/modules/input/input_rawinput.cpp
index 3e57f689506..8859de8f6e4 100644
--- a/src/osd/modules/input/input_rawinput.cpp
+++ b/src/osd/modules/input/input_rawinput.cpp
@@ -81,8 +81,8 @@ public:
std::wstring enum_key(int index) const
- WCHAR keyname[MAX_PATH];
- DWORD namelen = MAX_PATH;
+ WCHAR keyname[256];
+ DWORD namelen = ARRAY_LENGTH(keyname);
if (RegEnumKeyEx(m_key, index, keyname, &namelen, nullptr, nullptr, nullptr, nullptr) == ERROR_SUCCESS)
return std::wstring(keyname, namelen);