mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
SaveDataDialog: fix possible null access (#2947)
This commit is contained in:
parent
e2513d50be
commit
5f447a815e
@ -155,7 +155,7 @@ SaveDialogState::SaveDialogState(const OrbisSaveDataDialogParam& param) {
|
|||||||
|
|
||||||
if (item->focusPos != FocusPos::DIRNAME) {
|
if (item->focusPos != FocusPos::DIRNAME) {
|
||||||
this->focus_pos = item->focusPos;
|
this->focus_pos = item->focusPos;
|
||||||
} else {
|
} else if (item->focusPosDirName != nullptr) {
|
||||||
this->focus_pos = item->focusPosDirName->data.to_string();
|
this->focus_pos = item->focusPosDirName->data.to_string();
|
||||||
}
|
}
|
||||||
this->style = item->itemStyle;
|
this->style = item->itemStyle;
|
||||||
|
Loading…
Reference in New Issue
Block a user