Fixed a bug in GetVolumeInformationA()
authorHartmut Birr <osexpert@googlemail.com>
Fri, 2 Nov 2001 22:08:28 +0000 (22:08 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Fri, 2 Nov 2001 22:08:28 +0000 (22:08 +0000)
svn path=/trunk/; revision=2342

reactos/lib/kernel32/file/volume.c

index 3317da3..a4ce9d7 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: volume.c,v 1.20 2001/06/15 11:14:06 ekohl Exp $
+/* $Id: volume.c,v 1.21 2001/11/02 22:08:28 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -436,10 +436,12 @@ GetVolumeInformationA(
 
        if (Result)
        {
+                VolumeNameU.Length = wcslen(VolumeNameU.Buffer) * sizeof(WCHAR);
                VolumeName.Length = 0;
                VolumeName.MaximumLength = nVolumeNameSize;
                VolumeName.Buffer = lpVolumeNameBuffer;
 
+                FileSystemNameU.Length = wcslen(FileSystemNameU.Buffer) * sizeof(WCHAR);
                FileSystemName.Length = 0;
                FileSystemName.MaximumLength = nFileSystemNameSize;
                FileSystemName.Buffer = lpFileSystemNameBuffer;