mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
lpVolumeNameBuffer wasn't being null terminated either. The line of code to do so was there, but it was missing the "= 0"
svn path=/trunk/; revision=5189
This commit is contained in:
parent
9276a7b72a
commit
a084794f67
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: volume.c,v 1.30 2003/07/20 09:40:13 hbirr Exp $
|
||||
/* $Id: volume.c,v 1.31 2003/07/20 18:05:46 royce Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -646,7 +646,7 @@ GetVolumeInformationW(
|
|||
memcpy(lpVolumeNameBuffer,
|
||||
FileFsVolume->VolumeLabel,
|
||||
FileFsVolume->VolumeLabelLength);
|
||||
lpVolumeNameBuffer[FileFsVolume->VolumeLabelLength / sizeof(WCHAR)];
|
||||
lpVolumeNameBuffer[FileFsVolume->VolumeLabelLength / sizeof(WCHAR)] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue