mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 08:25:16 +00:00
VFS: Fix some potential .back() segfaults
This commit is contained in:
parent
10c52cf569
commit
0d1fbfb755
3 changed files with 26 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ vfs_dialog_usb_input::vfs_dialog_usb_input(const QString& name, const cfg::devic
|
|||
: QDialog(parent), m_gui_settings(std::move(_gui_settings)), m_gui_save(gui::fs_dev_usb_list)
|
||||
{
|
||||
ensure(!!info);
|
||||
ensure(!name.isEmpty());
|
||||
ensure(name.back() >= '0' && name.back() <= '7');
|
||||
|
||||
setWindowTitle(tr("Edit %0").arg(name));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue