From: lgao4 Date: Wed, 4 Jan 2012 04:17:48 +0000 (+0000) Subject: Fix the issue in PeiCore that doesn’t handle Unix style file path of PDB file. X-Git-Tag: edk2-stable201903~13715 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=1e21413c8c3489a6e84b08386ce10ed281f5203c Fix the issue in PeiCore that doesn’t handle Unix style file path of PDB file. Signed-off-by: lgao4 Reviewed-by:rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12906 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c index 0906548ede..843e020142 100644 --- a/MdeModulePkg/Core/Pei/Image/Image.c +++ b/MdeModulePkg/Core/Pei/Image/Image.c @@ -1,7 +1,7 @@ /** @file Pei Core Load Image Support -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2012, 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 @@ -572,7 +572,7 @@ PeiLoadImageLoadImage ( if (AsciiString != NULL) { for (Index = (INT32) AsciiStrLen (AsciiString) - 1; Index >= 0; Index --) { - if (AsciiString[Index] == '\\') { + if (AsciiString[Index] == '\\' || AsciiString[Index] == '/') { break; } }