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:
@@ -617,7 +617,7 @@ GetFileBufferByFilePath (
|
||||
}
|
||||
}
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!EFI_ERROR (Status) && (FileInfo != NULL)) {
|
||||
//
|
||||
// Allocate space for the file
|
||||
//
|
||||
|
Reference in New Issue
Block a user