diff --git a/Alcatraz/pdbparser/pdbparser.cpp b/Alcatraz/pdbparser/pdbparser.cpp index 815eb47..c7a4597 100644 --- a/Alcatraz/pdbparser/pdbparser.cpp +++ b/Alcatraz/pdbparser/pdbparser.cpp @@ -51,6 +51,7 @@ pdbparser::pdbparser(pe64* pe) { } + SymSetSearchPath(GetCurrentProcess(), std::filesystem::path(pdb_path).parent_path().string().c_str()); this->module_base = reinterpret_cast(SymLoadModuleEx(GetCurrentProcess(), 0, pdb_path.c_str(), 0, 0x10000000, static_cast(std::filesystem::file_size(pdb_path)), 0, 0)); @@ -115,4 +116,4 @@ std::vectorpdbparser::parse_functions() { throw std::runtime_error("couldn't enum symbols"); return functions; -} \ No newline at end of file +}