kiv: small optimization

git-svn-id: svn://kolibrios.org@1475 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2010-05-30 18:57:44 +00:00
parent c5397f9cf2
commit 0d82157aac

View File

@ -212,23 +212,23 @@ button:
mov esi, path mov esi, path
mov edi, @PARAMS mov edi, @PARAMS
push edi
mov ecx, 4096/4 mov ecx, 4096/4
rep movsd rep movsd
mov byte [edi-1], 0 mov byte [edi-1], 0
mov esi, @PARAMS pop esi
push esi push esi
call find_last_name_component call find_last_name_component
pop eax
push [image] push [image]
mov eax, path
call load_image call load_image
jc .restore_old jc .restore_old
call generate_header call generate_header
invoke img.destroy invoke img.destroy
call free_directory call free_directory
pop eax ; pop for [image]
jmp red jmp red
.restore_old: .restore_old: