mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FASTFAT] While closing FCBs on dismount, release from tail to head and not the contrary.
It fixes assertion failure in vfatDestroyFCB() where we would have release parent before child. This is still not perfect, but less bug prone... With this commits (and ENABLE_SWAPOUT defined), ReactOS seems to unmount FAT volumes quite nice! :-) (Tried with fsutil volume dismount X:)
This commit is contained in:
parent
de03686148
commit
64bc96558e
1 changed files with 1 additions and 1 deletions
|
@ -1203,7 +1203,7 @@ VfatDismountVolume(
|
|||
/* Rebrowse the FCB in order to free them now */
|
||||
while (!IsListEmpty(&DeviceExt->FcbListHead))
|
||||
{
|
||||
NextEntry = RemoveHeadList(&DeviceExt->FcbListHead);
|
||||
NextEntry = RemoveTailList(&DeviceExt->FcbListHead);
|
||||
Fcb = CONTAINING_RECORD(NextEntry, VFATFCB, FcbListEntry);
|
||||
vfatDestroyFCB(Fcb);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue