diff --git a/disassembly/pecodesource.cpp b/disassembly/pecodesource.cpp index f84f6eef5..a6b7d463b 100644 --- a/disassembly/pecodesource.cpp +++ b/disassembly/pecodesource.cpp @@ -59,8 +59,10 @@ PECodeSource::PECodeSource(const std::string& filename) : is_amd64_(false) { } peparse::iterSec section_callback = [](void* N, - peparse::VA section_base, std::string& section_name, - peparse::image_section_header s, peparse::bounded_buffer* data) -> int { + const peparse::VA §ion_base, + const std::string §ion_name, + const peparse::image_section_header &s, + const peparse::bounded_buffer* data) -> int { PECodeSource* pe_code_source = static_cast(N); PECodeRegion* new_region = new PECodeRegion(