mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:45:49 +00:00
Initialize MainResource and PagingIoResource fields in FSRTL_COMMON_FCB_HEADER structure
svn path=/trunk/; revision=24027
This commit is contained in:
parent
6702dd5240
commit
bd33d79025
3 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue