Skip to content

Commit

Permalink
Flag deleted file reroutes as 'new' so they get removed from the dele…
Browse files Browse the repository at this point in the history
…ted file map
  • Loading branch information
Silarn committed Apr 24, 2018
1 parent ffb60a5 commit 0e6d788
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/usvfs_dll/hooks/kernel32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,11 @@ class RerouteW

result.m_Buffer = k32DeleteTracker.lookup(result.m_RealPath);
bool found = !result.m_Buffer.empty();
if (found)
if (found) {
spdlog::get("hooks")->info("Rerouting file open to location of deleted file: {}",
ush::string_cast<std::string>(result.m_Buffer));
else {
result.m_NewReroute = true;
} else {
const usvfs::RedirectionTreeContainer &table
= inverse ? context->inverseTable() : context->redirectionTable();
result.m_FileNode = table->findNode(lookupPath);
Expand Down

0 comments on commit 0e6d788

Please sign in to comment.