Initialize MainResource and PagingIoResource fields in FSRTL_COMMON_FCB_HEADER structure

svn path=/trunk/; revision=24027
This commit is contained in:
Hervé Poussineau 2006-09-10 15:58:29 +00:00
parent 6702dd5240
commit bd33d79025
3 changed files with 7 additions and 1 deletions

View file

@ -180,6 +180,7 @@ typedef struct _FCB
{
FSRTL_COMMON_FCB_HEADER RFCB;
SECTION_OBJECT_POINTERS SectionObjectPointers;
ERESOURCE PagingIoResource;
PFILE_OBJECT FileObject;
PDEVICE_EXTENSION DevExt;

View file

@ -1,7 +1,7 @@
<module name="cdfs" type="kernelmodedriver" installbase="system32/drivers" installname="cdfs.sys">
<bootstrap base="reactos" />
<include base="cdfs">.</include>
<define name="__USE_W32API" />
<define name="__USE_W32API" />
<library>ntoskrnl</library>
<library>hal</library>
<file>cdfs.c</file>

View file

@ -88,7 +88,11 @@ CdfsCreateFCB(PCWSTR FileName)
}
}
ExInitializeResourceLite(&Fcb->PagingIoResource);
ExInitializeResourceLite(&Fcb->MainResource);
Fcb->RFCB.PagingIoResource = &Fcb->PagingIoResource;
Fcb->RFCB.Resource = &Fcb->MainResource;
Fcb->RFCB.IsFastIoPossible = FastIoIsNotPossible;
return(Fcb);
}
@ -97,6 +101,7 @@ CdfsCreateFCB(PCWSTR FileName)
VOID
CdfsDestroyFCB(PFCB Fcb)
{
ExDeleteResourceLite(&Fcb->PagingIoResource);
ExDeleteResourceLite(&Fcb->MainResource);
ExFreePool(Fcb);