mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
cellSaveData/overlays/Qt: fix some warnings and a possible nullptr deref
This commit is contained in:
parent
ec9b896fbf
commit
b3c1759853
4 changed files with 11 additions and 13 deletions
|
|
@ -160,7 +160,7 @@ static bool savedata_check_args(u32 operation, u32 version, vm::cptr<char> dirNa
|
|||
}
|
||||
|
||||
if ((operation >= SAVEDATA_OP_LIST_AUTO_SAVE && operation <= SAVEDATA_OP_FIXED_LOAD) || operation == SAVEDATA_OP_FIXED_DELETE)
|
||||
{
|
||||
{
|
||||
if (setBuf->dirListMax > CELL_SAVEDATA_DIRLIST_MAX)
|
||||
{
|
||||
// ****** sysutil savedata parameter error : 8 ******
|
||||
|
|
@ -330,8 +330,6 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||
save_entry2.subtitle = psf.at("SUB_TITLE").as_string();
|
||||
save_entry2.details = psf.at("DETAIL").as_string();
|
||||
|
||||
save_entry2.size = 0;
|
||||
|
||||
for (const auto entry2 : fs::dir(base_dir + entry.name))
|
||||
{
|
||||
save_entry2.size += entry2.size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue