From 1e21413c8c3489a6e84b08386ce10ed281f5203c Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 4 Jan 2012 04:17:48 +0000 Subject: [PATCH] =?utf8?q?Fix=20the=20issue=20in=20PeiCore=20that=20doesn?= =?utf8?q?=E2=80=99t=20handle=20Unix=20style=20file=20path=20of=20PDB=20fi?= =?utf8?q?le.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- MdeModulePkg/Core/Pei/Image/Image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.2