Author: ekohl
Date: Wed Mar  1 20:46:24 2017
New Revision: 74019

URL: http://svn.reactos.org/svn/reactos?rev=74019&view=rev
Log:
[USETUP]
Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

Modified:
    trunk/reactos/base/setup/usetup/partlist.c

Modified: trunk/reactos/base/setup/usetup/partlist.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist.c?rev=74019&r1=74018&r2=74019&view=diff
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c  [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c  [iso-8859-1] Wed Mar  1 
20:46:24 2017
@@ -3045,6 +3045,13 @@
         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;
 


Reply via email to