mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
Fixed code that checks for a deleted directory entry ( which is really used to find a free entry ) to accept a blank ( never before used ) entry as free
svn path=/trunk/; revision=1189
This commit is contained in:
parent
a32b900658
commit
8eb69e31d4
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.3 2000/02/22 02:02:08 ekohl Exp $
|
/* $Id: create.c,v 1.4 2000/06/17 22:00:46 phreak Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -46,7 +46,7 @@ BOOLEAN IsDeletedEntry(PVOID Block, ULONG Offset)
|
||||||
{
|
{
|
||||||
/* Checks special character */
|
/* Checks special character */
|
||||||
|
|
||||||
return ((((FATDirEntry *)Block)[Offset].Filename[0] == 0xe5));
|
return ((((FATDirEntry *)Block)[Offset].Filename[0] == 0xe5) || (((FATDirEntry *)Block)[Offset].Filename[0] == 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN GetEntryName(PVOID Block, PULONG _Offset, PWSTR Name, PULONG _jloop,
|
BOOLEAN GetEntryName(PVOID Block, PULONG _Offset, PWSTR Name, PULONG _jloop,
|
||||||
|
|
Loading…
Reference in a new issue