We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330a5e6 commit 8440178Copy full SHA for 8440178
1 file changed
source/yail.cpp
@@ -72,11 +72,8 @@ namespace
72
73
const auto* ntdll = GetModuleHandleA("ntdll.dll");
74
for (const auto* sig : signatures)
75
- {
76
- const auto result = omath::PePatternScanner::scan_for_pattern_in_loaded_module(ntdll, sig);
77
- if (result)
+ if (const auto result = omath::PePatternScanner::scan_for_pattern_in_loaded_module(ntdll, sig))
78
return reinterpret_cast<RtlInsertInvertedFunctionTableFn>(result.value());
79
- }
80
81
throw std::runtime_error{"Failed to find RtlInsertInvertedFunctionTable"};
82
}
0 commit comments