From: Pierre Schweitzer Date: Fri, 5 Oct 2018 19:17:38 +0000 (+0200) Subject: [NTOSKRNL] Implement support for PIN_IF_BCB flag X-Git-Tag: 0.4.12-dev~602 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=bd39459f89da7e5031b2b30266521df362759e52 [NTOSKRNL] Implement support for PIN_IF_BCB flag --- diff --git a/ntoskrnl/cc/pin.c b/ntoskrnl/cc/pin.c index f40405e6c52..3e89cacddfa 100644 --- a/ntoskrnl/cc/pin.c +++ b/ntoskrnl/cc/pin.c @@ -329,6 +329,12 @@ CcPinRead ( if (iBcb == NULL) { + /* We failed to find an already existing BCB */ + if (BooleanFlagOn(Flags, PIN_IF_BCB)) + { + return FALSE; + } + /* Map first */ if (!CcpMapData(SharedCacheMap, FileOffset, Length, Flags, Bcb, Buffer)) {