mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 16:30:05 +00:00
hle: nvflinger: parcel: Reserve token size.
This commit is contained in:
parent
ddd5a2b1c6
commit
7db60fe7da
@ -89,7 +89,8 @@ public:
|
|||||||
[[maybe_unused]] const u32 unknown = Read<u32>();
|
[[maybe_unused]] const u32 unknown = Read<u32>();
|
||||||
const u32 length = Read<u32>();
|
const u32 length = Read<u32>();
|
||||||
|
|
||||||
std::u16string token{};
|
std::u16string token;
|
||||||
|
token.reserve(length + 1);
|
||||||
|
|
||||||
for (u32 ch = 0; ch < length + 1; ++ch) {
|
for (u32 ch = 0; ch < length + 1; ++ch) {
|
||||||
token.push_back(ReadUnaligned<u16>());
|
token.push_back(ReadUnaligned<u16>());
|
||||||
|
Loading…
Reference in New Issue
Block a user