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:
Stephan Aßmus 2009-07-25 16:50:17 +00:00
parent 2990bea766
commit 821d6af079

View File

@ -806,7 +806,7 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition,
BString previousName = partition->ContentName();
ret = partition->Initialize(diskSystem.PrettyName(),
supportsName ? name.String() : NULL, parameters.String());
supportsName ? validatedName.String() : NULL, parameters.String());
if (ret != B_OK) {
_DisplayPartitionError("Initialization of the partition %s "
"failed. (Nothing has been written to disk.)", partition, ret);