fix example

git-svn-id: svn://kolibrios.org@6314 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA 2016-03-10 12:25:30 +00:00
parent 24104fc1e6
commit 5240ce4bd2

View File

@ -165,19 +165,19 @@ button:
@@:
cmp ah,6
jne @f
call but_1
call draw_file_1 ;桑陋╲𩤃 身銈酮䭾剁
@@:
cmp ah,7
jne @f
call but_2
call draw_file_2 ;身銈酮䭾剁 祚 GPS
@@:
cmp ah,8
jne @f
call but_3
call draw_file_3 ;身銈酮䭾剁 app2
@@:
cmp ah,9
jne @f
call but_4
call draw_file_4
@@:
cmp ah,1
jne still
@ -222,14 +222,15 @@ but_open_file:
jne .end_open_file
mov eax,[open_file]
mov ebx,dword[eax+32] ;dword[eax+32] - à §¬¥à ®âªà뢠¥¬®£® ä ©« 
mov dword[open_file_size],ebx ;ebx - à §¬¥à ®âªà뢠¥¬®£® ä ©« 
mov ebx,[eax+32] ;dword[eax+32] - <EFBFBD>妞丞 栽芹諲<E88AB9>洫ㄝ <20><EFBFBD>
mov [open_file_size],ebx ;ebx - <EFBFBD>妞丞 栽芹諲<E88AB9>洫ㄝ <20><EFBFBD>
;memory_file_size - à §¬¥à ¢ë¤¥«¥­­®© ¯ ¬ï⨠¤«ï ä ©« 
cmp dword[memory_file_size],ebx
cmp [memory_file_size],ebx
jge @f
;㢥«¨ç¨¢ ¥¬ ¯ ¬ïâì ¥á«¨ ­¥ 墠⨫®
mov dword[memory_file_size],ebx
stdcall mem.ReAlloc, dword[open_file],ebx
mov [memory_file_size],ebx
stdcall mem.ReAlloc, [open_file],ebx
mov [open_file],eax
@@:
mov [run_file_70.Function], SSF_READ_FILE
@ -483,7 +484,7 @@ if 0 ;
mov ebx,dword[h_child] ;dword[open_file]
mov [run_file_70.Buffer], ebx
mov ebx,... ; âãâ ¤®«¦¥­ ¡ëâì à §¬¥à í᪨§  ¨§®¡à ¦¥­¨ï ª®â®àë© ¬¥­ìè¥ ç¥¬ [open_file_size]
mov ebx,dword[h_child_siz] ;<3B>妞丞 罅爸<E7BD85> 豆恣<E8B186>戎郃<E6888E>
end if
mov dword[run_file_70.Count], ebx ;à §¬¥à ä ©« 
mov byte[run_file_70+20], 0
@ -497,26 +498,6 @@ end if
popad
ret
align 4
but_1:
call draw_file_1 ;®á­®¢­ ï ¨­ä®à¬ æ¨ï
ret
align 4
but_2:
call draw_file_2 ;¨­ä®à¬ æ¨ï ¯® GPS
ret
align 4
but_3:
call draw_file_3 ;¨­ä®à¬ æ¨ï app2
ret
align 4
but_4:
call draw_file_4 ;¥é¥ ª ª ï-â® ¨­ä®à¬ æ¨ï ...
ret
;¤ ­­ë¥ ¤«ï ¤¨ «®£  ®âªàëâ¨ï ä ©«®¢
align 4
OpenDialog_data: