forked from KolibriOS/kolibrios
Relax Protective MBR checks.
git-svn-id: svn://kolibrios.org@7546 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
490fec6653
commit
c780425437
@ -1012,8 +1012,6 @@ endp
|
|||||||
is_protective_mbr:
|
is_protective_mbr:
|
||||||
push ecx edi
|
push ecx edi
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
; cmp [ecx-6], eax
|
|
||||||
; jnz .exit
|
|
||||||
cmp [ecx-2], ax
|
cmp [ecx-2], ax
|
||||||
jnz .exit
|
jnz .exit
|
||||||
; Partition record 0 has specific fields
|
; Partition record 0 has specific fields
|
||||||
@ -1023,15 +1021,13 @@ is_protective_mbr:
|
|||||||
jnz .exit
|
jnz .exit
|
||||||
cmp dword[ecx+8], 1
|
cmp dword[ecx+8], 1
|
||||||
jnz .exit
|
jnz .exit
|
||||||
cmp dword[esi+DISK.MediaInfo.Capacity+4], eax
|
mov edi, -1
|
||||||
mov edi, 0xFFFFFFFF
|
cmp [ecx+12], edi
|
||||||
jnz @f
|
jz @f
|
||||||
mov edi, dword[esi+DISK.MediaInfo.Capacity+0]
|
add edi, dword[esi+DISK.MediaInfo.Capacity+0]
|
||||||
dec edi
|
cmp [ecx+12], edi
|
||||||
@@:
|
|
||||||
cmp dword[ecx+12], edi
|
|
||||||
jnz .exit
|
jnz .exit
|
||||||
|
@@:
|
||||||
; Check that partition records 1-3 are filled with zero
|
; Check that partition records 1-3 are filled with zero
|
||||||
lea edi, [ecx+16]
|
lea edi, [ecx+16]
|
||||||
mov ecx, 16*3/2 ; 3 partitions
|
mov ecx, 16*3/2 ; 3 partitions
|
||||||
|
Loading…
Reference in New Issue
Block a user