Fix icon search function in box_lib/filebrowser

Consider a config file with the following two lines:
abc=1
c=2

Previously, the first line matched *.c files, because it had the 'c=1'
substring. Now we skip until the next line as soon as 'abc' doesn't
match 'c'.
This commit is contained in:
2025-02-11 20:44:41 +00:00
parent 17eebff188
commit 195f996c1b

View File

@@ -777,8 +777,13 @@ fb_get_icon_number:
.search_association:
cmp edx,eax
jbe .end
mov esi,fb_extension_start
inc eax
cmp byte[eax], 0xa
jne .search_association
inc eax
cmp edx,eax
jbe .end
mov esi,fb_extension_start
mov ecx,eax
mov ebx,eax
cld