aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/repo.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 01:21:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 01:21:58 +0300
commitde5c928779d69e22221d08c21ce3b5455157004e (patch)
tree50ac3106f4fd91c5c900540596bed8b1c5db807d /src/repo.cpp
parentuse error reporting from winapi-common (diff)
downloadwinapi-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.cpp4
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)};