[usetup]
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 9 Mar 2014 14:19:56 +0000 (14:19 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 9 Mar 2014 14:19:56 +0000 (14:19 +0000)
exit when no usable disks are found

svn path=/trunk/; revision=62467

reactos/base/setup/usetup/interface/usetup.c

index 74bf8e6..717bad1 100644 (file)
@@ -1472,6 +1472,11 @@ SelectPartitionPage(PINPUT_RECORD Ir)
             /* FIXME: show an error dialog */
             return QUIT_PAGE;
         }
+        else if (IsListEmpty (&PartitionList->DiskListHead))
+        {
+            MUIDisplayError(ERROR_NO_HDD, Ir, POPUP_WAIT_ENTER);
+            return QUIT_PAGE;
+        }
     }
 
     DrawPartitionList(PartitionList);