mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL] Fail on pinning when there's no pin access set
Instead of assert, now, CcPinRead will just fail. This is not consistent without Windows behavior, but still better than asserting while testing!
This commit is contained in:
parent
a4dc3c4963
commit
f96f1224a7
1 changed files with 5 additions and 1 deletions
|
@ -186,7 +186,11 @@ CcPinMappedData (
|
|||
|
||||
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
|
||||
ASSERT(SharedCacheMap);
|
||||
ASSERT(SharedCacheMap->PinAccess);
|
||||
if (!SharedCacheMap->PinAccess)
|
||||
{
|
||||
DPRINT1("FIXME: Pinning a file with no pin access!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
iBcb = *Bcb;
|
||||
ASSERT(iBcb->Pinned == FALSE);
|
||||
|
|
Loading…
Reference in a new issue