mirror of https://github.com/acidanthera/audk.git
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:
parent
dded3ae880
commit
3d33cb1e5c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue