diff options
-rw-r--r-- | MdePkg/Library/DxeServicesLib/DxeServicesLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c index 107bf4b..45936d4 100644 --- a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c +++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c @@ -617,7 +617,7 @@ GetFileBufferByFilePath ( }
}
- if (!EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status) && (FileInfo != NULL)) {
//
// Allocate space for the file
//
|