Fix ftpc crash
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 21s
Build system / Build (pull_request) Successful in 4m20s

This commit is contained in:
2025-05-21 02:03:54 +05:00
parent c148987224
commit 123320d145

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