Subversion Repositories Kolibri OS

Rev

Rev 6994 | Rev 7128 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6994 Rev 7001
Line 518... Line 518...
518
        mov     ecx,[eax]
518
        mov     ecx,[eax]
519
        sub     ecx,3*4
519
        sub     ecx,3*4
520
; in ecx size of string to insert   
520
; in ecx size of string to insert   
521
        add     ecx,ed_size
521
        add     ecx,ed_size
522
        mov     edx,ed_max
522
        mov     edx,ed_max
523
        sub     edx,2 ; 2 reserved for edit_box
-
 
524
        cmp     ecx,edx
523
        cmp     ecx,edx
525
        jb      @f
524
        jb      @f
526
        mov     ecx,edx
525
        mov     ecx,edx
527
@@:
526
@@:
528
        mov     esi,eax
527
        mov     esi,eax
Line 533... Line 532...
533
        inc     ecx        
532
        inc     ecx        
534
        mcall   SF_SYS_MISC,SSF_MEM_ALLOC
533
        mcall   SF_SYS_MISC,SSF_MEM_ALLOC
535
        push    eax ; save mem pointer
534
        push    eax ; save mem pointer
Line 536... Line 535...
536
                
535
                
537
        mov     edx, ed_max
-
 
Line 538... Line 536...
538
        sub     edx, 3 ; +1 for StrInsert, +2 as reserved for edit_box
536
        mov     edx, ed_max
539
        
537
        
540
        push   dword ed_text ; Dst   
538
        push   dword ed_text ; Dst   
541
        push   esi           ; Src   
539
        push   esi           ; Src