mirror of https://github.com/acidanthera/audk.git
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:
parent
f981c39b38
commit
e191bb1430
|
@ -617,7 +617,7 @@ GetFileBufferByFilePath (
|
|||
}
|
||||
}
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!EFI_ERROR (Status) && (FileInfo != NULL)) {
|
||||
//
|
||||
// Allocate space for the file
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue