chore(logger): module output once (#1025)

This commit is contained in:
Aure7138 2023-02-28 17:16:12 +08:00 committed by GitHub
parent 7084ce510b
commit 555e9e45ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,16 +42,7 @@ namespace big
// modules cached already // modules cached already
if (m_modules.size()) if (m_modules.size())
{
for (const auto& module : m_modules)
{
m_dump
<< module.m_path.filename().string()
<< " Base Address: " << HEX_TO_UPPER(module.m_base)
<< " Size: " << module.m_size << '\n';
}
return; return;
}
const auto peb = reinterpret_cast<PPEB>(NtCurrentTeb()->ProcessEnvironmentBlock); const auto peb = reinterpret_cast<PPEB>(NtCurrentTeb()->ProcessEnvironmentBlock);
if (!peb) if (!peb)