Browse Source

Fixed non-Win32 compilation issue

Tal Aloni 8 years ago
parent
commit
6c66cf1890
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ISCSIConsole/AddTargetForm.cs

+ 2 - 0
ISCSIConsole/AddTargetForm.cs

@@ -97,6 +97,7 @@ namespace ISCSIConsole
             {
                 description = ((DiskImage)disk).Path;
             }
+#if Win32
             else if (disk is PhysicalDisk)
             {
                 description = String.Format("Physical Disk {0}", ((PhysicalDisk)disk).PhysicalDiskIndex);
@@ -105,6 +106,7 @@ namespace ISCSIConsole
             {
                 description = String.Format("Volume");
             }
+#endif
             ListViewItem item = new ListViewItem(description);
             item.SubItems.Add(sizeString);
             listDisks.Items.Add(item);