Patch by Jeroen Oortwijn: Use the validated name instead of the original one.
Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31750 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -806,7 +806,7 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition,
|
|||||||
BString previousName = partition->ContentName();
|
BString previousName = partition->ContentName();
|
||||||
|
|
||||||
ret = partition->Initialize(diskSystem.PrettyName(),
|
ret = partition->Initialize(diskSystem.PrettyName(),
|
||||||
supportsName ? name.String() : NULL, parameters.String());
|
supportsName ? validatedName.String() : NULL, parameters.String());
|
||||||
if (ret != B_OK) {
|
if (ret != B_OK) {
|
||||||
_DisplayPartitionError("Initialization of the partition %s "
|
_DisplayPartitionError("Initialization of the partition %s "
|
||||||
"failed. (Nothing has been written to disk.)", partition, ret);
|
"failed. (Nothing has been written to disk.)", partition, ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user