mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 00:41:36 +00:00
[FASTFAT]
- Don't try to free an uninitialized pointer in VfatSetRenameInformation. CID 1250303 - Actually use the dynamically calculated HashTableSize. CID 1237119/1237120/1237121 svn path=/trunk/; revision=68986
This commit is contained in:
parent
e4e403fceb
commit
2231e344a2
|
@ -529,6 +529,7 @@ VfatSetRenameInformation(
|
|||
RootFCB = RootFileObject->FsContext;
|
||||
}
|
||||
|
||||
RtlInitEmptyUnicodeString(&NewName, NULL, 0);
|
||||
ParentFCB = NULL;
|
||||
|
||||
if (TargetFileObject == NULL)
|
||||
|
|
|
@ -429,7 +429,6 @@ VfatMount(
|
|||
{
|
||||
HashTableSize = 65537; // 65536 = 64 * 1024;
|
||||
}
|
||||
HashTableSize = FCB_HASH_TABLE_SIZE;
|
||||
DPRINT("VFAT: Recognized volume\n");
|
||||
Status = IoCreateDevice(VfatGlobalData->DriverObject,
|
||||
ROUND_UP(sizeof (DEVICE_EXTENSION), sizeof(ULONG)) + sizeof(HASHENTRY*) * HashTableSize,
|
||||
|
|
|
@ -264,8 +264,6 @@ typedef struct _HASHENTRY
|
|||
}
|
||||
HASHENTRY;
|
||||
|
||||
#define FCB_HASH_TABLE_SIZE 65536
|
||||
|
||||
typedef struct DEVICE_EXTENSION *PDEVICE_EXTENSION;
|
||||
|
||||
typedef NTSTATUS (*PGET_NEXT_CLUSTER)(PDEVICE_EXTENSION,ULONG,PULONG);
|
||||
|
|
Loading…
Reference in a new issue