summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2010-10-12 15:58:30 +0200
committerFelix Geyer <debfx-pkg@fobos.de>2010-10-12 15:58:30 +0200
commit7f230f4ac2a1b544b47ded0584c22822b9bd65d7 (patch)
treeee5808929787047784013befd706131196a30d1d /src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
parentadf97a4e6386ea334ce8d77f0cde3b92454b9fa5 (diff)
downloadvirtualbox-7f230f4ac2a1b544b47ded0584c22822b9bd65d7.tar.gz
Imported Upstream version 3.2.10-dfsgupstream/3.2.10-dfsg
Diffstat (limited to 'src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp')
-rw-r--r--src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
index c8a57fe48..e043e8288 100644
--- a/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
@@ -1,6 +1,6 @@
/* $Id: VBoxManageDisk.cpp $ */
/** @file
- * VBoxManage - The disk delated commands.
+ * VBoxManage - The disk related commands.
*/
/*
@@ -254,7 +254,7 @@ int handleCreateHardDisk(HandlerArg *a)
}
/* check the outcome */
- if ( !filename
+ if ( filename.isEmpty()
|| sizeMB == 0)
return errorSyntax(USAGE_CREATEHD, "Parameters --filename and --size are required");
@@ -778,7 +778,8 @@ int handleConvertFromRaw(int argc, char *argv[])
if (!srcfilename)
{
srcfilename = ValueUnion.psz;
-#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS)
+// If you change the OS list here don't forget to update VBoxManageHelp.cpp.
+#ifndef RT_OS_WINDOWS
fReadFromStdIn = !strcmp(srcfilename, "stdin");
#endif
}
@@ -1013,7 +1014,7 @@ int handleAddiSCSIDisk(HandlerArg *a)
}
/* check for required options */
- if (!server || !target)
+ if (server.isEmpty() || target.isEmpty())
return errorSyntax(USAGE_ADDISCSIDISK, "Parameters --server and --target are required");
do
@@ -1203,7 +1204,7 @@ int handleShowHardDiskInfo(HandlerArg *a)
Bstr description;
hardDisk->COMGETTER(Description)(description.asOutParam());
- if (description)
+ if (!description.isEmpty())
{
RTPrintf("Description: %lS\n", description.raw());
}