mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 05:10:48 -07:00
misc: Fix missing null terminator for strings with pchtxt (#3629)
As title say.
This commit is contained in:
@ -253,7 +253,7 @@ namespace Ryujinx.HLE.Loaders.Mods
|
|||||||
|
|
||||||
if (tokens[1][0] == '"')
|
if (tokens[1][0] == '"')
|
||||||
{
|
{
|
||||||
var patch = Encoding.ASCII.GetBytes(tokens[1].Trim('"'));
|
var patch = Encoding.ASCII.GetBytes(tokens[1].Trim('"') + "\0");
|
||||||
patches.Add((uint)offset, patch);
|
patches.Add((uint)offset, patch);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user