PFILE_OBJECT FileObject)
{
PNTFS_CCB Ccb;
+ PNTFS_FCB Fcb;
DPRINT("NtfsCloseFile(DeviceExt %p, FileObject %p)\n",
DeviceExt,
FileObject);
Ccb = (PNTFS_CCB)(FileObject->FsContext2);
+ Fcb = (PNTFS_FCB)(FileObject->FsContext);
DPRINT("Ccb %p\n", Ccb);
if (Ccb == NULL)
}
FileObject->FsContext2 = NULL;
+ FileObject->FsContext = NULL;
+ FileObject->SectionObjectPointer = NULL;
if (FileObject->FileName.Buffer)
{
// This a FO, that was created outside from FSD.
// Some FO's are created with IoCreateStreamFileObject() insid from FSD.
// This FO's don't have a FileName.
- NtfsReleaseFCB(DeviceExt, FileObject->FsContext);
+ NtfsReleaseFCB(DeviceExt, Fcb);
}
if (Ccb->DirectorySearchPattern)