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; FSRTL_COMMON_FCB_HEADER RFCB;
SECTION_OBJECT_POINTERS SectionObjectPointers; SECTION_OBJECT_POINTERS SectionObjectPointers;
ERESOURCE PagingIoResource;
PFILE_OBJECT FileObject; PFILE_OBJECT FileObject;
PDEVICE_EXTENSION DevExt; PDEVICE_EXTENSION DevExt;

View file

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

View file

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