mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
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…
x
Reference in New Issue
Block a user