Skip to content

Commit 5899dd9

Browse files
committed
Reduce AddD search window
1 parent f50f9f7 commit 5899dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BinaryObjectScanner/Protection/SecuROM.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public List<string> CheckDirectoryPath(string path, List<string>? files)
262262
// Search for the "AddD" string in the overlay
263263
bool found = false;
264264
int index = 0;
265-
for (; index < 0x100 && index + 4 < overlayData.Length; index++)
265+
for (; index < 0x20 && index + 4 < overlayData.Length; index++)
266266
{
267267
int temp = index;
268268
byte[] overlaySample = overlayData.ReadBytes(ref temp, 0x04);
@@ -273,7 +273,7 @@ public List<string> CheckDirectoryPath(string path, List<string>? files)
273273
}
274274
}
275275

276-
// If the string wasn't found in the first 0x100 bytes
276+
// If the string wasn't found in the first 0x20 bytes
277277
if (!found)
278278
return null;
279279

0 commit comments

Comments
 (0)