Rev 6456 | Rev 6535 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6456 | Rev 6495 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | purge section,mov,add,sub |
8 | purge section,mov,add,sub |
9 | 9 | ||
Line 10... | Line 10... | ||
10 | include '../../../programs/dll.inc' |
10 | include '../../../programs/dll.inc' |
Line 11... | Line 11... | ||
11 | 11 | ||
12 | public init_libimg as '_init_libimg_asm' |
12 | public init_libimg as '_kolibri_libimg_init' |
Line 13... | Line 13... | ||
13 | ;;; Returns 0 on success. -1 on failure. |
13 | ;;; Returns 0 on success. -1 on failure. |
14 | - | ||
15 | proc init_libimg |
14 | |
16 | - | ||
17 | mcall 68,11 |
15 | proc init_libimg |
18 | - | ||
19 | stdcall dll.Load, @IMPORT |
- | |
20 | test eax, eax |
- | |
21 | jnz error |
- | |
22 | - | ||
23 | mov eax, 0 |
- | |
24 | ret |
- | |
25 | - | ||
26 | error: |
16 | mcall 68,11 |
27 | mov eax, -1 |
17 | stdcall dll.Load, @IMPORT |
Line 28... | Line 18... | ||
28 | ret |
18 | ret |
29 | endp |
19 | endp |