Rev 864 | Rev 928 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 864 | Rev 887 | ||
---|---|---|---|
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: 864 $ |
8 | $Revision: 887 $ |
9 | 9 | ||
10 | 10 | ||
Line 364... | Line 364... | ||
364 | cmp word [flags], LOAD_FROM_FILE |
364 | cmp word [flags], LOAD_FROM_FILE |
365 | jne @F |
365 | jne @F |
Line 366... | Line 366... | ||
366 | 366 | ||
367 | stdcall load_file, [src] |
367 | stdcall load_file, [src] |
368 | test eax, eax |
- | |
369 | jz .fail |
368 | test eax, eax |
- | 369 | mov [src], eax |
|
370 | mov [src], eax |
370 | jz .fail |
371 | @@: |
371 | @@: |
372 | push ebx |
372 | push ebx |
373 | push esi |
373 | push esi |
Line 381... | Line 381... | ||
381 | call [create_cursor] ;eax, ebx, ecx |
381 | call [create_cursor] ;eax, ebx, ecx |
382 | mov [handle], eax |
382 | mov [handle], eax |
Line 383... | Line 383... | ||
383 | 383 | ||
384 | cmp word [flags], LOAD_FROM_FILE |
384 | cmp word [flags], LOAD_FROM_FILE |
- | 385 | jne .exit |
|
- | 386 | ||
385 | jne .exit |
387 | mov ecx, [src] |
386 | stdcall kernel_free, [src] |
388 | call @mem_free@4 |
387 | .exit: |
389 | .exit: |
388 | pop edi |
390 | pop edi |
389 | pop esi |
391 | pop esi |
390 | pop ebx |
392 | pop ebx |
Line 434... | Line 436... | ||
434 | 436 | ||
435 | align 4 |
437 | align 4 |
Line 436... | Line 438... | ||
436 | destroy_cursor: |
438 | destroy_cursor: |
437 | 439 | ||
- | 440 | push eax |
|
438 | push eax |
441 | mov ecx, [eax+CURSOR.base] |
Line 439... | Line 442... | ||
439 | stdcall kernel_free, [eax+CURSOR.base] |
442 | call @mem_free@4 |
440 | pop eax |
443 | pop eax |