aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/repo.cpp
diff options
context:
space:
mode:
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)};