Skip to content

Commit

Permalink
cellSaveData: followup to #7652
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 authored and Nekotekina committed Mar 1, 2020
1 parent b05b16a commit 7dfd50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellSaveData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v

const auto dotpos = std::find_end(fileName, termpos, name, name + 1);

if (dotpos != termpos && (dotpos > fileName + 8 || termpos - dotpos > 4))
if (dotpos > fileName + 8 || termpos - dotpos > 4)
{
// ****** sysutil savedata parameter error : 70 ******
savedata_result = {CELL_SAVEDATA_ERROR_PARAM, "70"};
Expand All @@ -1439,7 +1439,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
}
}

if (dotpos != termpos)
if (dotpos < termpos - 1)
{
// Reset for file extension
std::memset(name, 0, 5);
Expand Down

0 comments on commit 7dfd50d

Please sign in to comment.