mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Fix unique_ptr usage
This commit is contained in:
parent
978d578f4e
commit
8b0c772423
3 changed files with 5 additions and 5 deletions
|
|
@ -46,7 +46,7 @@ bool PSFLoader::Load(vfsStream& stream)
|
|||
|
||||
const u32 key_table_size = header.off_data_table - header.off_key_table;
|
||||
|
||||
std::unique_ptr<char> keys(new char[key_table_size + 1]);
|
||||
std::unique_ptr<char[]> keys(new char[key_table_size + 1]);
|
||||
|
||||
stream.Seek(header.off_key_table);
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ bool PSFLoader::Load(vfsStream& stream)
|
|||
|
||||
const u32 size = indices[i].param_len;
|
||||
|
||||
std::unique_ptr<char> str(new char[size + 1]);
|
||||
std::unique_ptr<char[]> str(new char[size + 1]);
|
||||
|
||||
if (stream.Read(str.get(), size) != size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue