summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-07-04 18:27:29 +0800
committerStar Zeng <star.zeng@intel.com>2016-07-05 17:25:37 +0800
commit3d33cb1e5c2fcceffa56fc33a0010750ec56423a (patch)
tree35d94f4529a5cba21a676e0efe2b0fb85919ad2c /MdeModulePkg
parentdded3ae880310c1fa57a6259058dc28d12cff61c (diff)
downloadedk2-3d33cb1e5c2fcceffa56fc33a0010750ec56423a.tar.gz
edk2-3d33cb1e5c2fcceffa56fc33a0010750ec56423a.tar.bz2
edk2-3d33cb1e5c2fcceffa56fc33a0010750ec56423a.zip
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>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c2
1 files changed, 1 insertions, 1 deletions
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;
}