Rev 2455 | Rev 2498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2455 | Rev 2497 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. 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: 2455 $ |
8 | $Revision: 2497 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 79... | Line 79... | ||
79 | hdr_esp dd ? ;0x0C |
79 | hdr_esp dd ? ;0x0C |
80 | hdr_mem dd ? ;0x10 |
80 | hdr_mem dd ? ;0x10 |
81 | hdr_i_end dd ? ;0x14 |
81 | hdr_i_end dd ? ;0x14 |
82 | endl |
82 | endl |
Line 83... | Line 83... | ||
83 | 83 | ||
Line 84... | Line 84... | ||
84 | pushad |
84 | call set_default_cursor_clock |
Line 85... | Line 85... | ||
85 | 85 | ||
Line 111... | Line 111... | ||
111 | jnz @b |
111 | jnz @b |
112 | jmp .namecopied |
112 | jmp .namecopied |
113 | .bigfilename: |
113 | .bigfilename: |
114 | popad |
114 | popad |
115 | mov eax, -ERROR_FILE_NOT_FOUND |
115 | mov eax, -ERROR_FILE_NOT_FOUND |
- | 116 | call set_default_cursor_arrow |
|
116 | ret |
117 | ret |
Line 117... | Line 118... | ||
117 | 118 | ||
Line 118... | Line 119... | ||
118 | .namecopied: |
119 | .namecopied: |
Line 125... | Line 126... | ||
125 | mov dword [eax+252], 0 |
126 | mov dword [eax+252], 0 |
126 | stdcall strncpy, eax, ebx, 255 |
127 | stdcall strncpy, eax, ebx, 255 |
127 | @@: |
128 | @@: |
128 | lea eax, [filename] |
129 | lea eax, [filename] |
129 | stdcall load_file, eax |
130 | stdcall load_file, eax |
- | 131 | ||
130 | mov esi, -ERROR_FILE_NOT_FOUND |
132 | mov esi, -ERROR_FILE_NOT_FOUND |
131 | test eax, eax |
133 | test eax, eax |
132 | jz .err_file |
134 | jz .err_file |
Line 133... | Line 135... | ||
133 | 135 | ||
Line 235... | Line 237... | ||
235 | call set_cr3 |
237 | call set_cr3 |
Line 236... | Line 238... | ||
236 | 238 | ||
237 | xor ebx, ebx |
239 | xor ebx, ebx |
238 | mov [application_table_status], ebx;unlock application_table_status mutex |
240 | mov [application_table_status], ebx;unlock application_table_status mutex |
- | 241 | mov eax, [process_number];set result |
|
239 | mov eax, [process_number];set result |
242 | call set_default_cursor_arrow |
240 | ret |
243 | ret |
241 | .failed: |
244 | .failed: |
242 | mov eax, [save_cr3] |
245 | mov eax, [save_cr3] |
243 | call set_cr3 |
246 | call set_cr3 |
Line 246... | Line 249... | ||
246 | stdcall kernel_free, [file_base] |
249 | stdcall kernel_free, [file_base] |
247 | .err_file: |
250 | .err_file: |
248 | xor eax, eax |
251 | xor eax, eax |
249 | mov [application_table_status], eax |
252 | mov [application_table_status], eax |
250 | mov eax, esi |
253 | mov eax, esi |
- | 254 | call set_default_cursor_arrow |
|
251 | ret |
255 | ret |
252 | endp |
256 | endp |
Line 253... | Line 257... | ||
253 | 257 | ||
254 | align 4 |
258 | align 4 |