mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 11:43:47 +00:00
Fixed a bug in findDirSpace().
svn path=/trunk/; revision=2890
This commit is contained in:
parent
418853bd8f
commit
ade2b9c4eb
1 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dirwr.c,v 1.24 2002/03/18 22:37:12 hbirr Exp $
|
/* $Id: dirwr.c,v 1.25 2002/04/27 19:25:57 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -125,6 +125,7 @@ findDirSpace(PDEVICE_EXTENSION DeviceExt,
|
||||||
if (Context)
|
if (Context)
|
||||||
{
|
{
|
||||||
CcUnpinData(Context);
|
CcUnpinData(Context);
|
||||||
|
Context = NULL;
|
||||||
}
|
}
|
||||||
if (nbFree == nbSlots)
|
if (nbFree == nbSlots)
|
||||||
{
|
{
|
||||||
|
@ -164,8 +165,11 @@ findDirSpace(PDEVICE_EXTENSION DeviceExt,
|
||||||
TRUE, &Context, (PVOID*)&pFatEntry);
|
TRUE, &Context, (PVOID*)&pFatEntry);
|
||||||
RtlZeroMemory(pFatEntry, sizeof(FATDirEntry));
|
RtlZeroMemory(pFatEntry, sizeof(FATDirEntry));
|
||||||
}
|
}
|
||||||
CcSetDirtyPinnedData(Context, NULL);
|
if (Context)
|
||||||
CcUnpinData(Context);
|
{
|
||||||
|
CcSetDirtyPinnedData(Context, NULL);
|
||||||
|
CcUnpinData(Context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DPRINT ("nbSlots %d nbFree %d, entry number %d\n", nbSlots, nbFree, *start);
|
DPRINT ("nbSlots %d nbFree %d, entry number %d\n", nbSlots, nbFree, *start);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue