[NTOSKRNL:CC] Implemented CcSetBcbOwnerPointer
Implemented CcSetBcbOwnerPointer, now it correctly handle resource from MBCB
This commit is contained in:
parent
67ee8f85ce
commit
d825fe1dcb
@ -271,7 +271,19 @@ CcSetBcbOwnerPointer(
|
|||||||
IN PMBCB Bcb,
|
IN PMBCB Bcb,
|
||||||
IN PVOID OwnerPointer)
|
IN PVOID OwnerPointer)
|
||||||
{
|
{
|
||||||
//Unimimplemented
|
if (Bcb->NodeTypeCode == 762)
|
||||||
|
{
|
||||||
|
/* Iterate through all bitmap ranges */
|
||||||
|
for (auto it = ListEntryIterator::begin(&Bcb->BitmapRanges); it != ListEntryIterator::end(&Bcb->BitmapRanges); ++it)
|
||||||
|
{ auto* Bcb = CONTAINING_RECORD(it->Blink,MBCB,BitmapRanges);
|
||||||
|
ExSetResourceOwnerPointer(&Bcb->DirtyPages,OwnerPointer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Single bitmap range */
|
||||||
|
ExSetResourceOwnerPointer(&Bcb->BitmapRange1.FirstDirtyPage,OwnerPointer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user