Author: pschweitzer
Date: Wed Jun  7 19:33:55 2017
New Revision: 74945

URL: http://svn.reactos.org/svn/reactos?rev=74945&view=rev
Log:
[UDFS]
Set the volume label with the logical volume ident contained in the file set 
descriptor.
Microsoft appears to do so, so mimic this behavior to have consistent volumes 
labels with Windows.

CORE-4375

Modified:
    trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp

Modified: trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp?rev=74945&r1=74944&r2=74945&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp   [iso-8859-1] 
(original)
+++ trunk/reactos/drivers/filesystems/udfs/udf_info/mount.cpp   [iso-8859-1] 
Wed Jun  7 19:33:55 2017
@@ -2554,6 +2554,13 @@
         UDFPrint(("SysStream at block=%x, partition=%d\n",
             sysstream->logicalBlockNum, sysstream->partitionReferenceNum));
     }
+#define CUR_IDENT_SZ (sizeof(fset->logicalVolIdent))
+    if (Vcb->VolIdent.Buffer) {
+        MyFreePool__(Vcb->VolIdent.Buffer);
+    }
+    UDFGetDstring(&(Vcb->VolIdent), (dstring*)&(fset->logicalVolIdent), 
CUR_IDENT_SZ);
+#undef CUR_IDENT_SZ
+    UDFPrint(("volIdent[] = '%ws'\n", Vcb->VolIdent.Buffer));
     // Get current UDF revision
     // Get Read-Only flags
     UDFReadEntityID_Domain(Vcb, &(fset->domainIdent));


Reply via email to