From: Star Zeng Date: Wed, 15 Mar 2017 05:39:27 +0000 (+0800) Subject: MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build X-Git-Tag: edk2-stable201903~4390 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=491c91ee9db5aa2638eba55266c2bd58c0ed84d2 MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build Cc: Liming Gao Cc: Ruiyu Ni Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Feng Tian Reviewed-by: Liming Gao Reviewed-by: Ruiyu Ni --- diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c index 0abd019440..4d4495b2a8 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c @@ -3,7 +3,7 @@ performance, all the function will only include if the performance switch is set. -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -49,7 +49,7 @@ BmGetShortPdbFileName ( ; for (Index = 0; PdbFileName[Index] != 0; Index++) { - if (PdbFileName[Index] == '\\') { + if ((PdbFileName[Index] == '\\') || (PdbFileName[Index] == '/')) { StartIndex = Index + 1; }