Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74019
This commit is contained in:
Eric Kohl 2017-03-01 20:46:24 +00:00
parent 41733bc328
commit 91d6a8f428

View 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;