Skip to content

Commit 15aa3cf

Browse files
committed
'PATCH' text correctly checked for in Study().
1 parent f23af7a commit 15aa3cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LibIPS.NET/LibIpsNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public IpsStudy Study(Stream patch)
4444
using (var patchReader = new BinaryReader(patch))
4545
{
4646
// If 'PATCH' text was not found, return IPS was invalid error.
47-
if (!patchReader.ReadChars(PatchText.Length).ToString().Equals(PatchText)) throw new Exceptions.IpsInvalidException();
47+
if (!new string(patchReader.ReadChars(PatchText.Length)).Equals(PatchText)) throw new Exceptions.IpsInvalidException();
4848

4949
int offset = Read24(patchReader);
5050
int outlen = 0;

0 commit comments

Comments
 (0)