summaryrefslogtreecommitdiff
path: root/filesys/fastfat/cleanup.c
diff options
context:
space:
mode:
authorkarlf <[email protected]>2016-08-11 13:28:13 -0700
committerkarlf <[email protected]>2016-08-11 13:28:13 -0700
commit96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch)
treead5f3ede5cbcd6b598677ce41bcf8318471bdd92 /filesys/fastfat/cleanup.c
parent687b274aa38fd05c8c26e3068932121876d7f745 (diff)
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'filesys/fastfat/cleanup.c')
-rw-r--r--filesys/fastfat/cleanup.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/filesys/fastfat/cleanup.c b/filesys/fastfat/cleanup.c
index b42a952b..b6169b9c 100644
--- a/filesys/fastfat/cleanup.c
+++ b/filesys/fastfat/cleanup.c
@@ -599,7 +599,7 @@ Return Value:
DebugTrace(0, Dbg, "Delete File allocation\n", 0);
- FatTruncateFileAllocation( IrpContext, Fcb, 0, TRUE );
+ FatTruncateFileAllocation( IrpContext, Fcb, 0 );
if (Fcb->Header.AllocationSize.LowPart == 0) {
@@ -714,6 +714,8 @@ Return Value:
IoGetRequestorProcess( Irp ),
NULL );
+
+
//
// We can proceed with on-disk updates only if the volume is mounted
// and we can still write to it if it hasn't been shutdown. Remember that
@@ -862,11 +864,13 @@ Return Value:
DebugTrace(0, Dbg, "truncate file allocation\n", 0);
if (Vcb->VcbCondition == VcbGood) {
-
+
+
FatTruncateFileAllocation( IrpContext,
Fcb,
- Fcb->Header.FileSize.LowPart,
- FlagOn(Fcb->FcbState, FCB_STATE_DELETE_ON_CLOSE) );
+ Fcb->Header.FileSize.LowPart );
+
+
}
//