diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-16 01:21:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-16 01:21:58 +0300 |
commit | de5c928779d69e22221d08c21ce3b5455157004e (patch) | |
tree | 50ac3106f4fd91c5c900540596bed8b1c5db807d /src/repo.cpp | |
parent | use error reporting from winapi-common (diff) | |
download | winapi-debug-de5c928779d69e22221d08c21ce3b5455157004e.tar.gz winapi-debug-de5c928779d69e22221d08c21ce3b5455157004e.zip |
export pdb::file to winapi-common's File
Diffstat (limited to 'src/repo.cpp')
-rw-r--r-- | src/repo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repo.cpp b/src/repo.cpp index af56373..610ef9a 100644 --- a/src/repo.cpp +++ b/src/repo.cpp @@ -5,6 +5,8 @@ #include <pdb/all.hpp> +#include <winapi/file.hpp> + #include <map> #include <sstream> #include <stdexcept> @@ -89,7 +91,7 @@ Address Repo::add_pdb(Address online_base, const std::string& path) { if (online_bases.find(online_base) != online_bases.cend()) throw std::runtime_error{pdb_already_loaded(online_base, path)}; - auto file_id = file::query_id(path); + auto file_id = winapi::File::open_read_attributes(path).query_id(); if (file_ids.find(file_id) != file_ids.cend()) throw std::runtime_error{pdb_already_loaded(path)}; |