From 632489f702dd47b002b1daad3795df60c5469c0f Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Wed, 2 Jun 2010 09:26:10 +0000 Subject: [PATCH] Box_Lib/Filebrowser - fix of parsing values the concatenations icons for INI file git-svn-id: svn://kolibrios.org@1479 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libraries/box_lib/trunk/filebrowser.mac | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/filebrowser.mac b/programs/develop/libraries/box_lib/trunk/filebrowser.mac index 7c5f7f97ef..6ec0140f33 100644 --- a/programs/develop/libraries/box_lib/trunk/filebrowser.mac +++ b/programs/develop/libraries/box_lib/trunk/filebrowser.mac @@ -811,6 +811,7 @@ fb_get_icon_number: jz @f call fb_char_toupper shl ax,8 +.search_start_of_line: mov al,[ebx] inc ebx call fb_char_toupper @@ -819,12 +820,18 @@ fb_get_icon_number: mov eax,ecx jmp .search_association @@: - mov eax,ecx - mov esi,eax + mov esi,ecx add esi,ebp - cmp [esi],byte '=' - jne .search_association - inc esi + lodsb + cmp al,byte '=' + jne .end + mov eax,ecx + cmp eax,fb_ini_file_start + je @f + dec eax + cmp [eax],byte 15 + ja .end +@@: xor ebx,ebx xor eax,eax mov ecx,9