[USETUP]
authorEric Kohl <eric.kohl@reactos.org>
Wed, 1 Mar 2017 20:46:24 +0000 (20:46 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Wed, 1 Mar 2017 20:46:24 +0000 (20:46 +0000)
Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74019

reactos/base/setup/usetup/partlist.c

index 1be4d46..738bd73 100644 (file)
@@ -3045,6 +3045,13 @@ DeleteCurrentPartition(
         return;
     }
 
+    /* Clear the system disk and partition pointers if the system partition will be deleted */
+    if (List->SystemPartition == List->CurrentPartition)
+    {
+        List->SystemDisk = NULL;
+        List->SystemPartition = NULL;
+    }
+
     DiskEntry = List->CurrentDisk;
     PartEntry = List->CurrentPartition;