Skip to content

Commit 58707fe

Browse files
committed
Debug data debugged data
1 parent 7efe622 commit 58707fe

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

BinaryObjectScanner/Protection/Macrovision.SafeDisc.cs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,19 @@ public partial class Macrovision
102102
if (name.OptionalEquals("SafeDisc", StringComparison.OrdinalIgnoreCase))
103103
return "SafeDisc";
104104

105-
// Found in Redump entries 20729 and 65569.
106-
// Get the debug data
107-
if (pex.FindCodeViewDebugTableByPath("SafeDisc").Count > 0)
108-
return "SafeDisc";
109-
if (pex.FindCodeViewDebugTableByPath("Safedisk").Count > 0)
110-
return "SafeDisc";
105+
try
106+
{
107+
// Found in Redump entries 20729 and 65569.
108+
// Get the debug data
109+
if (pex.FindCodeViewDebugTableByPath("SafeDisc").Count > 0)
110+
return "SafeDisc";
111+
if (pex.FindCodeViewDebugTableByPath("Safedisk").Count > 0)
112+
return "SafeDisc";
113+
}
114+
catch
115+
{
116+
// Absorb inconsistent debug data errors
117+
}
111118

112119
// TODO: Investigate various section names:
113120
// "STLPORT_" - Found in Redump entry 11638.

0 commit comments

Comments
 (0)