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:
Royce Mitchell III 2003-07-20 18:05:46 +00:00
parent 9276a7b72a
commit a084794f67

View file

@ -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
{