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
This commit is contained in:
lgao4 2012-01-04 04:17:48 +00:00
parent 5aaa6e114a
commit 1e21413c8c
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/** @file
Pei Core Load Image Support
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
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;
}
}