https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c19c7c767448842af9b40…
commit c19c7c767448842af9b403f140248958e5490038
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Feb 8 09:46:08 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Feb 8 11:02:26 2018 +0100
[NTOSKRNL] Magic value--
---
ntoskrnl/cc/view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 145eb0d908..4933665bd1 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -1277,7 +1277,7 @@ CcRosInitializeFileCache (
/* Initialize it */
RtlZeroMemory(PrivateMap, sizeof(PRIVATE_CACHE_MAP));
PrivateMap->NodeTypeCode = NODE_TYPE_PRIVATE_MAP;
- PrivateMap->ReadAheadMask = 0xFFF;
+ PrivateMap->ReadAheadMask = PAGE_SIZE - 1;
PrivateMap->FileObject = FileObject;
/* Link it to the file */