Skip to content

Commit f87ce49

Browse files
make paul.dll internal name check non-case-sensitive (#365)
* make paul.dll internal name check non-case-sensitive Sometimes the internal name is in all caps, like http://redump.org/disc/115608/ and http://redump.org/disc/47171/ * Added proper import for ignore case Forgot it wasn't covered by system.text
1 parent 928e93a commit f87ce49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

BinaryObjectScanner/Protection/SecuROM.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Text;
34
using BinaryObjectScanner.Interfaces;
45
using SabreTools.Matching;
@@ -19,7 +20,7 @@ public class SecuROM : IExecutableCheck<PortableExecutable>, IPathCheck
1920
return $"SecuROM Product Activation v{pex.GetInternalVersion()}";
2021

2122
name = pex.InternalName;
22-
if (name.OptionalEquals("paul.dll"))
23+
if (name.OptionalEquals("paul.dll", StringComparison.OrdinalIgnoreCase))
2324
return $"SecuROM Product Activation v{pex.GetInternalVersion()}";
2425
else if (name.OptionalEquals("paul_dll_activate_and_play.dll"))
2526
return $"SecuROM Product Activation v{pex.GetInternalVersion()}";

0 commit comments

Comments
 (0)