fixed bug in FAT short names generation

git-svn-id: svn://kolibrios.org@466 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2007-04-18 14:58:48 +00:00
parent fef69aab20
commit 17dcdac5d8

View File

@ -1339,11 +1339,8 @@ fat_next_short_name:
jmp @b jmp @b
.found: .found:
inc byte [edi] inc byte [edi]
.succ: add dword [esp], 8
pop edi jmp .zerorest
popad
clc
ret
.break: .break:
jecxz .noplace jecxz .noplace
inc edi inc edi
@ -1354,7 +1351,11 @@ fat_next_short_name:
cmp al, ' ' cmp al, ' '
mov al, '0' mov al, '0'
jnz @b jnz @b
jmp .succ .succ:
pop edi
popad
clc
ret
.noplace: .noplace:
dec edi dec edi
cmp edi, [esp] cmp edi, [esp]
@ -1365,6 +1366,7 @@ fat_next_short_name:
inc edi inc edi
@@: @@:
mov byte [edi], '0' mov byte [edi], '0'
.zerorest:
inc edi inc edi
cmp edi, [esp] cmp edi, [esp]
jb @b jb @b