Decompile fn_18187 (ResourceAliases::Load)
Batch #14590 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_18187 ResourceAliases::Load: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, secret, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
4dc0a6a943
commit
f022b6743e
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ void ResourceAliases::Load(int) {
|
|||
}
|
||||
|
||||
const std::uint32_t bytes = file.GetSize();
|
||||
auto* contents = static_cast<char*>(std::malloc(bytes + 1));
|
||||
auto* contents = new char[bytes + 1];
|
||||
file.Read(contents, bytes);
|
||||
contents[bytes] = '\0';
|
||||
file.Close();
|
||||
|
|
@ -82,6 +82,6 @@ void ResourceAliases::Load(int) {
|
|||
}
|
||||
|
||||
if (contents) {
|
||||
std::free(contents);
|
||||
delete[] contents;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue