Subversion Repositories Kolibri OS

Rev

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

Rev 9038 Rev 9045
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9038 $
8
$Revision: 9045 $
Line 9... Line 9...
9
 
9
 
Line 810... Line 810...
810
@@:
810
@@:
811
        push    esi
811
        push    esi
812
        test    edi, edi
812
        test    edi, edi
813
        jz      @f
813
        jz      @f
814
        stdcall is_region_userspace, edi, [ebp+APP_HDR.filename_size]
814
        stdcall is_region_userspace, edi, [ebp+APP_HDR.filename_size]
815
        jz      @f
815
        jnz     @f
816
        mov     al, '/'
816
        mov     al, '/'
817
        stosb
817
        stosb
818
        rep movsb
818
        rep movsb
819
        mov     byte [edi], 0
819
        mov     byte [edi], 0
820
@@:
820
@@:
Line 838... Line 838...
838
@@:
838
@@:
839
        mov     [APP_HEADER_01_.i_param], edi
839
        mov     [APP_HEADER_01_.i_param], edi
840
.copy_cmdline:
840
.copy_cmdline:
841
        inc     ecx  ; keep in mind about 0 in the end
841
        inc     ecx  ; keep in mind about 0 in the end
842
        stdcall is_region_userspace, edi, ecx
842
        stdcall is_region_userspace, edi, ecx
843
        jz      .check_tls_header
843
        jnz     .check_tls_header
844
        dec     ecx
844
        dec     ecx
845
        rep movsb
845
        rep movsb
846
        mov     byte [edi], 0
846
        mov     byte [edi], 0
847
.check_tls_header:
847
.check_tls_header:
848
        cmp     word [6], '02'
848
        cmp     word [6], '02'