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:
CleverMouse 2013-01-16 12:21:15 +00:00
parent ca94f88bd3
commit e6976fc326

View File

@ -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: