Correct access to unallocated memory resulting in GUI hang in some cases

This commit is contained in:
asava 2020-04-15 14:45:56 +03:00
parent 0733b704ff
commit 8b7d06ee22

View File

@ -1927,7 +1927,7 @@ VOID SystemVersionInit(VOID)
RecoveryPlists[1] = NULL;
/************************************************************************/
//Fill Plists
for (i = 0; i < APFSUUIDBankCounter+1; i++) {
for (i = 0; i < APFSUUIDBankCounter; i++) {
//Store UUID from bank
CHAR16 *CurrentUUID = GuidLEToStr((EFI_GUID *)((UINT8 *)APFSUUIDBank+i*0x10));
//Init temp string with system/install/recovery APFS path