We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23af7a commit 15aa3cfCopy full SHA for 15aa3cf
1 file changed
LibIPS.NET/LibIpsNet.cs
@@ -44,7 +44,7 @@ public IpsStudy Study(Stream patch)
44
using (var patchReader = new BinaryReader(patch))
45
{
46
// If 'PATCH' text was not found, return IPS was invalid error.
47
- if (!patchReader.ReadChars(PatchText.Length).ToString().Equals(PatchText)) throw new Exceptions.IpsInvalidException();
+ if (!new string(patchReader.ReadChars(PatchText.Length)).Equals(PatchText)) throw new Exceptions.IpsInvalidException();
48
49
int offset = Read24(patchReader);
50
int outlen = 0;
0 commit comments