mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 20:32:35 +03:00
fixed bug in FAT short names generation
git-svn-id: svn://kolibrios.org@466 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
fef69aab20
commit
17dcdac5d8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user