forked from KolibriOS/kolibrios
fix RamdiskDelete+FloppyDelete, they worked incorrectly since their introduction in r171
git-svn-id: svn://kolibrios.org@3442 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
38cdd04005
commit
e61b3f010d
@ -2257,8 +2257,10 @@ fs_RamdiskDelete:
|
||||
jmp .lfndel
|
||||
.lfndone:
|
||||
; delete FAT chain
|
||||
test eax, eax
|
||||
jz .done
|
||||
cmp eax, 2
|
||||
jb .done
|
||||
cmp eax, 0xFF8
|
||||
jae .done
|
||||
lea eax, [RAMDISK_FAT + eax*2]
|
||||
push dword [eax]
|
||||
and word [eax], 0
|
||||
|
@ -2257,15 +2257,17 @@ fs_FloppyDelete:
|
||||
popa
|
||||
; delete FAT chain
|
||||
pop eax
|
||||
test eax, eax
|
||||
jz .done
|
||||
@@:
|
||||
cmp eax, 2
|
||||
jb .done
|
||||
cmp eax, 0xFF8
|
||||
jae .done
|
||||
lea eax, [FLOPPY_FAT + eax*2]
|
||||
push dword [eax]
|
||||
and word [eax], 0
|
||||
pop eax
|
||||
and eax, 0xFFF
|
||||
jnz @b
|
||||
jmp @b
|
||||
.done:
|
||||
call save_flp_fat
|
||||
pop edi
|
||||
|
Loading…
Reference in New Issue
Block a user