mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:45:43 +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;
|
||||
SECTION_OBJECT_POINTERS SectionObjectPointers;
|
||||
ERESOURCE PagingIoResource;
|
||||
|
||||
PFILE_OBJECT FileObject;
|
||||
PDEVICE_EXTENSION DevExt;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue