mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-21 14:41:03 +10:00
Flash: Custom ROM: Fix incorrect unlocked check for EFIESP
This commit is contained in:
@@ -2067,7 +2067,7 @@ namespace WPinternals
|
|||||||
ulong EfiespLength = StreamLengthInSectors * 0x200;
|
ulong EfiespLength = StreamLengthInSectors * 0x200;
|
||||||
byte[] EfiespBinary = new byte[EfiespLength];
|
byte[] EfiespBinary = new byte[EfiespLength];
|
||||||
DecompressedStream.Read(EfiespBinary, 0, (int)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)
|
if (IsUnlocked)
|
||||||
{
|
{
|
||||||
Partition IsUnlockedFlag = GPT.GetPartition("IS_UNLOCKED");
|
Partition IsUnlockedFlag = GPT.GetPartition("IS_UNLOCKED");
|
||||||
|
|||||||
Reference in New Issue
Block a user