diff --git a/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp b/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp index 335ca66030..e885856e4c 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp @@ -102,7 +102,7 @@ int cellSaveDataListSave2(u32 version, mem_ptr_t setList, m if(!dir.IsOpened()) return CELL_SAVEDATA_ERROR_INTERNAL; - std::string dirNamePrefix = Memory.ReadString(setList->dirNamePrefix_addr).mb_str(); + std::string dirNamePrefix = std::string(Memory.ReadString(setList->dirNamePrefix_addr).mb_str()); std::vector saveEntries; for(const DirEntryInfo* entry = dir.Read(); entry; entry = dir.Read()) { @@ -165,7 +165,7 @@ int cellSaveDataListLoad2(u32 version, mem_ptr_t setList, m if(!dir.IsOpened()) return CELL_SAVEDATA_ERROR_INTERNAL; - std::string dirNamePrefix = Memory.ReadString(setList->dirNamePrefix_addr).mb_str(); + std::string dirNamePrefix = std::string(Memory.ReadString(setList->dirNamePrefix_addr).mb_str()); std::vector saveEntries; for(const DirEntryInfo* entry = dir.Read(); entry; entry = dir.Read()) {