+\r
+ //\r
+ // Terminate the cluster list\r
+ //\r
+ // Note that we must do this EVERY time we allocate a cluster, because\r
+ // FatAllocateCluster scans the FAT looking for a free cluster and\r
+ // "LastCluster" is no longer free! Usually, FatAllocateCluster will\r
+ // start looking with the cluster after "LastCluster"; however, when\r
+ // there is only one free cluster left, it will find "LastCluster"\r
+ // a second time. There are other, less predictable scenarios\r
+ // where this could happen, as well.\r
+ //\r
+ FatSetFatEntry (Volume, LastCluster, (UINTN) FAT_CLUSTER_LAST);\r
+ OFile->FileLastCluster = LastCluster;\r