Try to get the image form device path by FALSE and TRUE boot policy.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9589 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2009-12-23 04:55:08 +00:00
parent 8f635c36ad
commit 2983a79df5
1 changed files with 9 additions and 0 deletions

View File

@ -229,7 +229,16 @@ ExecuteSecurityHandlers (
// Try get file buffer when the handler requires image buffer.
//
if (FileBuffer == NULL) {
//
// Try to get image by FALSE boot policy for the exact boot file path.
//
FileBuffer = GetFileBufferByFilePath (FALSE, FilePath, &FileSize, &AuthenticationStatus);
if (FileBuffer == NULL) {
//
// Try to get image by TRUE boot policy for the inexact boot file path.
//
FileBuffer = GetFileBufferByFilePath (TRUE, FilePath, &FileSize, &AuthenticationStatus);
}
}
}
Status = mSecurityTable[Index].SecurityHandler (