From 821d6af0796ca5b72d864a9f9b5af86a7edae9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 25 Jul 2009 16:50:17 +0000 Subject: [PATCH] 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 --- src/apps/drivesetup/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index f3ae3c2c3f..9318b7d0a6 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -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);