mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying null-terminator.
svn path=/trunk/; revision=5173
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2003-07-18 Royce Mitchell III <[email protected]>
|
||||
|
||||
* drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying
|
||||
null-terminator.
|
||||
|
||||
2003-07-18 Royce Mitchell III <[email protected]>
|
||||
|
||||
* include/defines.h: added missing DISP_CHANGE_BADPARAM
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $Id: volume.c,v 1.17 2002/09/08 10:22:13 chorns Exp $
|
||||
/* $Id: volume.c,v 1.18 2003/07/20 01:48:46 royce Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -85,11 +85,11 @@ FsdGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
|
||||
FsAttributeInfo->FileSystemNameLength = Length;
|
||||
if (DeviceExt->FatInfo.FatType == FAT32)
|
||||
{
|
||||
memcpy(FsAttributeInfo->FileSystemName, L"FAT32", 10);
|
||||
memcpy(FsAttributeInfo->FileSystemName, L"FAT32\0", 12);
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(FsAttributeInfo->FileSystemName, L"FAT", 6);
|
||||
memcpy(FsAttributeInfo->FileSystemName, L"FAT\0", 8);
|
||||
}
|
||||
|
||||
DPRINT("Finished FsdGetFsAttributeInformation()\n");
|
||||
|
||||
Reference in New Issue
Block a user