From: Pierre Schweitzer Date: Wed, 7 Jun 2017 19:33:55 +0000 (+0000) Subject: [UDFS] X-Git-Tag: ReactOS-0.4.6~389 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=68dca562d7c439926fb67bd9944b0cd5dd3c949a;hp=5ec31693b009b381340c61a7506f4bfdfc658753;ds=sidebyside [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 svn path=/trunk/; revision=74945 --- diff --git a/reactos/drivers/filesystems/udfs/udf_info/mount.cpp b/reactos/drivers/filesystems/udfs/udf_info/mount.cpp index df10a56215f..1a797453037 100644 --- a/reactos/drivers/filesystems/udfs/udf_info/mount.cpp +++ b/reactos/drivers/filesystems/udfs/udf_info/mount.cpp @@ -2554,6 +2554,13 @@ UDFLoadFileset( 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));