Skip to content

Commit

Permalink
1. Save build break since this package has not long been maintained.
Browse files Browse the repository at this point in the history
2. Fix several bugs.

git-svn-id: https://fat-driver2.tianocore.org/svn/fat-driver2/trunk@12 65ba2f78-6c18-0410-a7b4-885970cf29fa
  • Loading branch information
qhuang8 committed Dec 11, 2006
1 parent 3b4c8bb commit 77be429
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 106 deletions.
10 changes: 9 additions & 1 deletion EnhancedFat/Dxe/DirectoryManage.c
Expand Up @@ -442,6 +442,13 @@ Routine Description:
}

if (Entry.FileName[0] != EMPTY_ENTRY_MARK) {
//
// Although FAT spec states this field is always 0 for FAT12 & FAT16, some applications
// might use it for some special usage, it is safer to zero it in memory for FAT12 & FAT16.
//
if (OFile->Volume->FatType != FAT32) {
Entry.FileClusterHigh = 0;
}
//
// This is a valid directory entry
//
Expand Down Expand Up @@ -839,7 +846,8 @@ Routine Description:
return Status;
}

if (((Entry->Attributes) & (~FAT_ATTRIBUTE_ARCHIVE)) == FAT_ATTRIBUTE_VOLUME_ID) {
if ((Entry->FileName[0] != DELETE_ENTRY_MARK) &&
(((Entry->Attributes) & (~FAT_ATTRIBUTE_ARCHIVE)) == FAT_ATTRIBUTE_VOLUME_ID)) {
DirEnt->EntryPos = EntryPos;
DirEnt->EntryCount = 1;
DirEnt->Invalid = FALSE;
Expand Down
10 changes: 0 additions & 10 deletions EnhancedFat/Dxe/Fat.msa
@@ -1,12 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">
<MsaHeader>
<ModuleName>Enhanced Fat Source Module</ModuleName>
Expand Down Expand Up @@ -151,8 +143,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
</Extern>
<Extern>
<DriverBinding>gFatDriverBinding</DriverBinding>
</Extern>
<Extern>
<ComponentName>gFatComponentName</ComponentName>
</Extern>
</Externs>
Expand Down

0 comments on commit 77be429

Please sign in to comment.