From 91d6a8f4284123280a2c7a46af0ec79c95e809df Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 1 Mar 2017 20:46:24 +0000 Subject: [PATCH] [USETUP] 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/base/setup/usetup/partlist.c b/reactos/base/setup/usetup/partlist.c index 1be4d46fd27..738bd732bd9 100644 --- a/reactos/base/setup/usetup/partlist.c +++ b/reactos/base/setup/usetup/partlist.c @@ -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;