Subversion Repositories Kolibri OS

Rev

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

Rev 521 Rev 525
Line 1... Line 1...
1
$Revision: 521 $
1
$Revision: 525 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
Line 1009... Line 1009...
1009
           mov dword [CURRENT_TASK+ebx+0x10],eax
1009
           mov dword [CURRENT_TASK+ebx+0x10],eax
Line 1010... Line 1010...
1010
 
1010
 
1011
.add_command_line:
1011
.add_command_line:
1012
           mov edx,[params]
1012
           mov edx,[params]
1013
           mov edx,[edx]           ;app_cmdline
1013
           mov edx,[edx]           ;app_cmdline
1014
           test edx, [cmd_line]    ;check both src & dst
1014
           test edx,edx
Line 1015... Line 1015...
1015
           jz @F                   ;application don't need parameters
1015
           jz @f                   ;application doesn't need parameters
1016
 
1016
 
1017
           mov     eax, edx
1017
           mov     eax, edx
Line 1018... Line 1018...
1018
           add     eax, 256
1018
           add     eax, 256
1019
           jc      @f
1019
           jc      @f
Line -... Line 1020...
-
 
1020
 
-
 
1021
           cmp     eax, [SLOT_BASE+APPDATA.mem_size+ebx*8]
-
 
1022
           ja      @f
-
 
1023
 
1020
 
1024
           mov     byte [edx], 0   ;force empty string if no cmdline given
1021
           cmp     eax, [SLOT_BASE+APPDATA.mem_size+ebx*8]
1025
           mov     eax, [cmd_line]
1022
           ja      @f
1026
           test    eax, eax
1023
 
1027
           jz      @f
1024
           stdcall strncpy, edx, [cmd_line], 256
1028
           stdcall strncpy, edx, eax, 256
1025
@@:
1029
@@: