mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
[ntoskrnl/cc]
- Don't create zero sized cache segments. By Dmitry Gorbachev. See issue #4100 for more details. svn path=/trunk/; revision=44349
This commit is contained in:
parent
88e41959e1
commit
6bc24c2625
1 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,8 @@ CcSetFileSizes (IN PFILE_OBJECT FileObject,
|
|||
{
|
||||
current = CONTAINING_RECORD(current_entry, CACHE_SEGMENT, BcbSegmentListEntry);
|
||||
current_entry = current_entry->Flink;
|
||||
if (current->FileOffset > FileSizes->AllocationSize.QuadPart)
|
||||
if (current->FileOffset > FileSizes->AllocationSize.QuadPart ||
|
||||
(current->FileOffset == 0 && FileSizes->AllocationSize.QuadPart == 0))
|
||||
{
|
||||
if (current->ReferenceCount == 0 || (current->ReferenceCount == 1 && current->Dirty))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue