Reviewed by: [email protected]

> -----Original Message-----
> From: Zeng, Star
> Sent: Monday, July 4, 2016 6:42 PM
> To: [email protected]
> Cc: Zeng, Star <[email protected]>; Yao, Jiewen <[email protected]>
> Subject: [PATCH] MdeModulePkg MemoryProfileInfo: Handle "/" character in
> the PDB path
> 
> Cc: Jiewen Yao <[email protected]>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Star Zeng <[email protected]>
> ---
>  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 69c6cf166daa..68e7ed7326f0 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;
>        }
> 
> --
> 2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to