From 3d33cb1e5c2fcceffa56fc33a0010750ec56423a Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 4 Jul 2016 18:27:29 +0800 Subject: [PATCH] MdeModulePkg MemoryProfileInfo: Handle "/" character in the PDB path Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao --- MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c index 48d8f4657b..e82ee9c93d 100644 --- a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c +++ b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c @@ -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; }