From 1d14d79fab6e28247976bfb2209220515ba104eb Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Mon, 16 Aug 2021 11:40:58 +0200 Subject: [PATCH] Flash: Custom ROM: Fix incorrect unlocked check for EFIESP --- WPinternals/ViewModels/LumiaV2UnlockBootViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WPinternals/ViewModels/LumiaV2UnlockBootViewModel.cs b/WPinternals/ViewModels/LumiaV2UnlockBootViewModel.cs index a8aea6a..476054d 100644 --- a/WPinternals/ViewModels/LumiaV2UnlockBootViewModel.cs +++ b/WPinternals/ViewModels/LumiaV2UnlockBootViewModel.cs @@ -2067,7 +2067,7 @@ namespace WPinternals ulong EfiespLength = StreamLengthInSectors * 0x200; byte[] EfiespBinary = new byte[EfiespLength]; DecompressedStream.Read(EfiespBinary, 0, (int)EfiespLength); - IsUnlocked = (ByteOperations.ReadUInt32(EfiespBinary, 0x20) == (EfiespBinary.Length / 0x200 / 2)) && ByteOperations.ReadAsciiString(EfiespBinary, (UInt32)(EfiespBinary.Length / 2) + 3, 8) == "MSDOS5.0"; + IsUnlocked = (ByteOperations.ReadUInt32(EfiespBinary, 0x20) == (EfiespBinary.Length / 0x200 / 2)) || ByteOperations.ReadAsciiString(EfiespBinary, (UInt32)(EfiespBinary.Length / 2) + 3, 8) == "MSDOS5.0"; if (IsUnlocked) { Partition IsUnlockedFlag = GPT.GetPartition("IS_UNLOCKED");