mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Fix issue with memory validation
This commit is contained in:
parent
3a7f5b970f
commit
fa134337d9
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "Emu/System.h"
|
#include "Emu/System.h"
|
||||||
#include "TRP.h"
|
#include "TRP.h"
|
||||||
#include "Crypto/sha1.h"
|
#include "Crypto/sha1.h"
|
||||||
|
#include "Utilities/StrUtil.h"
|
||||||
|
|
||||||
TRPLoader::TRPLoader(const fs::file& f)
|
TRPLoader::TRPLoader(const fs::file& f)
|
||||||
: trp_f(f)
|
: trp_f(f)
|
||||||
|
@ -141,11 +142,11 @@ void TRPLoader::RemoveEntry(const char *filename)
|
||||||
|
|
||||||
void TRPLoader::RenameEntry(const char *oldname, const char *newname)
|
void TRPLoader::RenameEntry(const char *oldname, const char *newname)
|
||||||
{
|
{
|
||||||
for (const TRPEntry& entry : m_entries)
|
for (TRPEntry& entry : m_entries)
|
||||||
{
|
{
|
||||||
if (!strcmp(entry.name, oldname))
|
if (!strcmp(entry.name, oldname))
|
||||||
{
|
{
|
||||||
memcpy((void*)entry.name, newname, 32);
|
strcpy_trunc(entry.name, newname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue