mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Release the cache segment if the reading of it fails (in CcMapData).
svn path=/trunk/; revision=3598
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user