mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Release the cache segment if the reading of it fails (in CcMapData).
svn path=/trunk/; revision=3598
This commit is contained in:
parent
68d5450c51
commit
9f97892ffa
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: pin.c,v 1.7 2002/09/08 10:23:16 chorns Exp $
|
||||
/* $Id: pin.c,v 1.8 2002/10/02 19:23:42 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -85,6 +85,7 @@ CcMapData (IN PFILE_OBJECT FileObject,
|
|||
}
|
||||
if (!NT_SUCCESS(ReadCacheSegment(CacheSeg)))
|
||||
{
|
||||
CcRosReleaseCacheSegment(Bcb, CacheSeg, FALSE, FALSE, FALSE);
|
||||
return(FALSE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue