Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul-ms authored and npuvvada committed Nov 10, 2023
1 parent 24a087b commit 81180e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fixups/RegLegacyFixups/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,16 @@ std::string InterpretKeyPath(HKEY key)
}
else
sret = "InterpretKeyPath failure1" + InterpretAsHex("status", (DWORD)status);

if (!sret.empty() && sret.back() == '\\')
{
sret.pop_back();
}
}
catch (...)
{
Log("InterpretKeyPath failure.");
}
if (!sret.empty() && sret.back() == '\\')
{
sret.pop_back();
}
return sret;
}

Expand Down

0 comments on commit 81180e3

Please sign in to comment.