mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 00:26:52 +03:00
fix FAT folder delete in some rare cases
git-svn-id: svn://kolibrios.org@3174 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ca94f88bd3
commit
e6976fc326
@ -2845,6 +2845,10 @@ fat_Delete:
|
|||||||
mov eax, esi
|
mov eax, esi
|
||||||
call get_FAT
|
call get_FAT
|
||||||
jc .err1
|
jc .err1
|
||||||
|
cmp eax, 2
|
||||||
|
jb .error_fat
|
||||||
|
cmp eax, [ebp+FAT.fatRESERVED]
|
||||||
|
jae .empty
|
||||||
mov esi, eax
|
mov esi, eax
|
||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
@@:
|
@@:
|
||||||
@ -2865,6 +2869,13 @@ fat_Delete:
|
|||||||
push ERROR_DEVICE
|
push ERROR_DEVICE
|
||||||
pop eax
|
pop eax
|
||||||
ret
|
ret
|
||||||
|
.error_fat:
|
||||||
|
popad
|
||||||
|
pop edi
|
||||||
|
call fat_unlock
|
||||||
|
push ERROR_FAT_TABLE
|
||||||
|
pop eax
|
||||||
|
ret
|
||||||
.notempty:
|
.notempty:
|
||||||
popad
|
popad
|
||||||
.access_denied2:
|
.access_denied2:
|
||||||
|
Loading…
Reference in New Issue
Block a user