Skip to content

Commit 2acc70e

Browse files
committed
Lib: Fix misleading log behavior in binarysearcher
1 parent eb988e2 commit 2acc70e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

LibCpp2IL/BinarySearcher.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ internal ulong FindCodeRegistrationPost2019()
147147

148148
LibLogger.VerboseNewline($"\t\t\tFound {pMscorlibCodegenEntryInCodegenModulesList.Count} address for potential codegen modules in potential codegen module lists: [{string.Join(", ", pMscorlibCodegenEntryInCodegenModulesList.Select(p => p.ToString("X")))}]");
149149

150+
if (pMscorlibCodegenEntryInCodegenModulesList.Count == 0)
151+
{
152+
LibLogger.ErrorNewline("\t\t\tNo codegen modules found for mscorlib! Aborting search.");
153+
return 0;
154+
}
155+
150156
var ptrSize = (_binary.is32Bit ? 4u : 8u);
151157

152158
List<ulong>? pCodegenModules = null;

0 commit comments

Comments
 (0)