MdeModulePkg MemoryProfileInfo: Handle "/" character in the PDB path

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Star Zeng 2016-07-04 18:27:29 +08:00
parent dded3ae880
commit 3d33cb1e5c
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ GetShortPdbFileName (
StartIndex = 0;
for (EndIndex = 0; PdbFileName[EndIndex] != 0; EndIndex++);
for (IndexPdb = 0; PdbFileName[IndexPdb] != 0; IndexPdb++) {
if (PdbFileName[IndexPdb] == '\\') {
if ((PdbFileName[IndexPdb] == '\\') || (PdbFileName[IndexPdb] == '/')) {
StartIndex = IndexPdb + 1;
}