Fix ftpc crash

This commit is contained in:
2025-05-21 02:03:54 +05:00
committed by Mikhail Frolov
parent 2dfb3ddff3
commit 11562988b1

View File

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