Skip to content

Commit 81180e3

Browse files
mridul-msnpuvvada
authored andcommitted
review comments
1 parent 24a087b commit 81180e3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

fixups/RegLegacyFixups/Logging.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,16 @@ std::string InterpretKeyPath(HKEY key)
481481
}
482482
else
483483
sret = "InterpretKeyPath failure1" + InterpretAsHex("status", (DWORD)status);
484+
485+
if (!sret.empty() && sret.back() == '\\')
486+
{
487+
sret.pop_back();
488+
}
484489
}
485490
catch (...)
486491
{
487492
Log("InterpretKeyPath failure.");
488493
}
489-
if (!sret.empty() && sret.back() == '\\')
490-
{
491-
sret.pop_back();
492-
}
493494
return sret;
494495
}
495496

0 commit comments

Comments
 (0)