]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix the issue in PeiCore that doesn’t handle Unix style file path of PDB file.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jan 2012 04:17:48 +0000 (04:17 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jan 2012 04:17:48 +0000 (04:17 +0000)
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

index 0906548edecef3effe3388d699bfc2b44179007f..843e0201425a0f02cfbb152ebeca70e28d0f4d95 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Pei Core Load Image Support\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -572,7 +572,7 @@ PeiLoadImageLoadImage (
 \r
     if (AsciiString != NULL) {\r
       for (Index = (INT32) AsciiStrLen (AsciiString) - 1; Index >= 0; Index --) {\r
-        if (AsciiString[Index] == '\\') {\r
+        if (AsciiString[Index] == '\\' || AsciiString[Index] == '/') {\r
           break;\r
         }\r
       }\r