Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
(based on FatPkg commit
059c24212d10c63351e377636b73a22e480a024b)
[jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Mark Doran <mark.doran@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
-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
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
UINT8 FileAttributes;\r
BOOLEAN WriteMode;\r
\r
UINT8 FileAttributes;\r
BOOLEAN WriteMode;\r
\r
Volume = OFile->Volume;\r
ASSERT_VOLUME_LOCKED (Volume);\r
WriteMode = (BOOLEAN) (OpenMode & EFI_FILE_MODE_WRITE);\r
Volume = OFile->Volume;\r
ASSERT_VOLUME_LOCKED (Volume);\r
WriteMode = (BOOLEAN) (OpenMode & EFI_FILE_MODE_WRITE);\r
+ ASSERT (DirEnt != NULL);\r
Status = FatOpenDirEnt (OFile, DirEnt);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
Status = FatOpenDirEnt (OFile, DirEnt);\r
if (EFI_ERROR (Status)) {\r
return Status;\r