Ticket #4123: drivesetupunnamedvolume.patch

File drivesetupunnamedvolume.patch, 543 bytes (added by idefix, 15 years ago)

Patch to prevent DriveSetup create volumes without a name

  • src/apps/drivesetup/MainWindow.cpp

     
    794794    }
    795795
    796796    bool supportsName = diskSystem.SupportsContentName();
     797    if (name.Length() == 0 && supportsName)
     798        name.SetTo("Unnamed");
     799
    797800    BString validatedName(name);
    798801    ret = partition->ValidateInitialize(diskSystem.PrettyName(),
    799802        supportsName ? &validatedName : NULL, parameters.String());