forked from KolibriOS/kolibrios
FAT: no trash in folder output
git-svn-id: svn://kolibrios.org@6576 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
56c4a442eb
commit
2eb44d9608
@ -1406,18 +1406,19 @@ fat_entry_to_bdfe2:
|
|||||||
mov [esi+36], eax ; file size (high dword)
|
mov [esi+36], eax ; file size (high dword)
|
||||||
test ebp, ebp
|
test ebp, ebp
|
||||||
jz .ret
|
jz .ret
|
||||||
push ecx edi
|
add esi, 40
|
||||||
lea edi, [esi+40]
|
push edi esi
|
||||||
|
mov edi, esi
|
||||||
mov esi, ebp
|
mov esi, ebp
|
||||||
mov ecx, 263
|
test byte [ebp-4], 1
|
||||||
test byte [esi-4], 1
|
|
||||||
jz .ansi
|
jz .ansi
|
||||||
mov ecx, 260/2
|
.uni:
|
||||||
rep movsd
|
lodsw
|
||||||
mov [edi-2], ax
|
stosw
|
||||||
@@:
|
test eax, eax
|
||||||
mov esi, edi
|
jnz .uni
|
||||||
pop edi ecx
|
pop esi edi
|
||||||
|
add esi, 520
|
||||||
.ret:
|
.ret:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1425,10 +1426,11 @@ fat_entry_to_bdfe2:
|
|||||||
lodsw
|
lodsw
|
||||||
call uni2ansi_char
|
call uni2ansi_char
|
||||||
stosb
|
stosb
|
||||||
loop .ansi
|
test al, al
|
||||||
xor eax, eax
|
jnz .ansi
|
||||||
stosb
|
pop esi edi
|
||||||
jmp @b
|
add esi, 264
|
||||||
|
ret
|
||||||
|
|
||||||
bdfe_to_fat_entry:
|
bdfe_to_fat_entry:
|
||||||
; convert BDFE at edx to FAT entry at edi
|
; convert BDFE at edx to FAT entry at edi
|
||||||
|
Loading…
Reference in New Issue
Block a user