Fix ftpc crash

This commit is contained in:
b00bl1k authored and Mikhail Frolov committed 2025-06-12 19:31:16 +02:00
1 parent 2dfb3ddff3
commit 11562988b1
1 file changed
+4
+4
View File
@@ -470,10 +470,14 @@ gui: ;//////////////////////////////////////////////////////////////////////////
dec edx
jnz @b
inc ecx
lea esi, [edi-1]
lea edi, [node_entry2+4]
@@:
movsb
dec ecx
; check if the file name is incomplete
jz .store_last_entry
cmp word[esi], 0x0a0d ; end of entry
jne @b
mov byte[edi], 0