Rev 641 | Rev 673 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 641 | Rev 662 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. 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: 641 $ |
8 | $Revision: 662 $ |
9 | 9 | ||
10 | 10 | ||
Line 360... | Line 360... | ||
360 | cmp word [flags], LOAD_FROM_FILE |
360 | cmp word [flags], LOAD_FROM_FILE |
361 | jne @F |
361 | jne @F |
Line 362... | Line 362... | ||
362 | 362 | ||
363 | stdcall load_file, [src] |
363 | stdcall load_file, [src] |
364 | test eax, eax |
364 | test eax, eax |
365 | jz .exit |
365 | jz .fail |
366 | mov [src], eax |
366 | mov [src], eax |
- | 367 | @@: |
|
- | 368 | push ebx |
|
- | 369 | push esi |
|
- | 370 | push edi |
|
367 | @@: |
371 | |
368 | mov eax, [CURRENT_TASK] |
372 | mov eax, [CURRENT_TASK] |
369 | shl eax, 5 |
373 | shl eax, 5 |
370 | mov eax, [CURRENT_TASK+eax+4] |
374 | mov eax, [CURRENT_TASK+eax+4] |
371 | mov ebx, [src] |
375 | mov ebx, [src] |
372 | mov ecx, [flags] |
376 | mov ecx, [flags] |
373 | call [create_cursor] ;eax, ebx, ecx |
377 | call [create_cursor] ;eax, ebx, ecx |
374 | mov [handle], eax |
378 | mov [handle], eax |
375 | .fail: |
379 | |
376 | cmp word [flags], LOAD_FROM_FILE |
380 | cmp word [flags], LOAD_FROM_FILE |
377 | jne .exit |
381 | jne .exit |
378 | stdcall kernel_free, [src] |
382 | stdcall kernel_free, [src] |
- | 383 | .exit: |
|
- | 384 | pop edi |
|
- | 385 | pop esi |
|
- | 386 | pop ebx |
|
379 | .exit: |
387 | .fail: |
380 | mov eax, [handle] |
388 | mov eax, [handle] |
381 | ret |
389 | ret |
Line 382... | Line 390... | ||
382 | endp |
390 | endp |