mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user