mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 15:46:49 +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
|
||||
call get_FAT
|
||||
jc .err1
|
||||
cmp eax, 2
|
||||
jb .error_fat
|
||||
cmp eax, [ebp+FAT.fatRESERVED]
|
||||
jae .empty
|
||||
mov esi, eax
|
||||
xor ecx, ecx
|
||||
@@:
|
||||
@ -2865,6 +2869,13 @@ fat_Delete:
|
||||
push ERROR_DEVICE
|
||||
pop eax
|
||||
ret
|
||||
.error_fat:
|
||||
popad
|
||||
pop edi
|
||||
call fat_unlock
|
||||
push ERROR_FAT_TABLE
|
||||
pop eax
|
||||
ret
|
||||
.notempty:
|
||||
popad
|
||||
.access_denied2:
|
||||
|
Loading…
Reference in New Issue
Block a user