mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:53:16 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -646,7 +646,7 @@ GetVolumeInformationW(
|
||||||
memcpy(lpVolumeNameBuffer,
|
memcpy(lpVolumeNameBuffer,
|
||||||
FileFsVolume->VolumeLabel,
|
FileFsVolume->VolumeLabel,
|
||||||
FileFsVolume->VolumeLabelLength);
|
FileFsVolume->VolumeLabelLength);
|
||||||
lpVolumeNameBuffer[FileFsVolume->VolumeLabelLength / sizeof(WCHAR)];
|
lpVolumeNameBuffer[FileFsVolume->VolumeLabelLength / sizeof(WCHAR)] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue