Add more check for local FileInfo variable before it is used.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9506 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2009-12-02 10:13:24 +00:00
parent f981c39b38
commit e191bb1430
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ GetFileBufferByFilePath (
}
}
if (!EFI_ERROR (Status)) {
if (!EFI_ERROR (Status) && (FileInfo != NULL)) {
//
// Allocate space for the file
//