diff options
| author | David Racine <bass_dr@hotmail.com> | 2026-06-24 12:22:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-24 16:22:40 +0000 |
| commit | 4a875dca4170f8a21b3e043d1bfb3d10d90e5822 (patch) | |
| tree | b848c18616241b613a07192b59c055e7cdfd776a /StormLib/src/SFileAttributes.cpp | |
| parent | 0d2346d322b00df45470338406ef290d210ac92e (diff) | |
fix(menu): guard backend name lookups against unknown backends (#6806)
GetAvailableAudioBackends()/GetAvailableWindowBackends() can report a backend
that has no entry in the static name maps (e.g. a newly added or platform-
specific backend), which made audioBackendsMap.at()/windowBackendsMap.at()
throw std::out_of_range and crash. Look up with find() (single lookup) and skip
backends that aren't named instead of dereferencing a missing key.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'StormLib/src/SFileAttributes.cpp')
0 files changed, 0 insertions, 0 deletions
