forked from KolibriOS/kolibrios
Fix ftpc crash
This commit is contained in:
@@ -470,10 +470,14 @@ gui: ;//////////////////////////////////////////////////////////////////////////
|
|||||||
dec edx
|
dec edx
|
||||||
jnz @b
|
jnz @b
|
||||||
|
|
||||||
|
inc ecx
|
||||||
lea esi, [edi-1]
|
lea esi, [edi-1]
|
||||||
lea edi, [node_entry2+4]
|
lea edi, [node_entry2+4]
|
||||||
@@:
|
@@:
|
||||||
movsb
|
movsb
|
||||||
|
dec ecx
|
||||||
|
; check if the file name is incomplete
|
||||||
|
jz .store_last_entry
|
||||||
cmp word[esi], 0x0a0d ; end of entry
|
cmp word[esi], 0x0a0d ; end of entry
|
||||||
jne @b
|
jne @b
|
||||||
mov byte[edi], 0
|
mov byte[edi], 0
|
||||||
|
Reference in New Issue
Block a user