]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FatPkg/EnhancedFatDxe/Open.c
IntelFsp2Pkg: Added changes to enable FPDT performance measurements
[mirror_edk2.git] / FatPkg / EnhancedFatDxe / Open.c
index 16badf6462b195a5c480066618cf64ef8ec91ac0..1d864d1248c8d30d85560515e337af0a99933c9c 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
 distribution. The full text of the license may be found at\r
@@ -124,6 +124,7 @@ Returns:
   UINT8       FileAttributes;\r
   BOOLEAN     WriteMode;\r
 \r
+  DirEnt = NULL;\r
   Volume = OFile->Volume;\r
   ASSERT_VOLUME_LOCKED (Volume);\r
   WriteMode = (BOOLEAN) (OpenMode & EFI_FILE_MODE_WRITE);\r
@@ -159,6 +160,7 @@ Returns:
       return Status;\r
     }\r
 \r
+    ASSERT (DirEnt != NULL);\r
     Status = FatOpenDirEnt (OFile, DirEnt);\r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
@@ -198,6 +200,7 @@ Returns:
 }\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 FatOpenEx (\r
   IN  EFI_FILE_PROTOCOL       *FHand,\r
   OUT EFI_FILE_PROTOCOL       **NewHandle,\r