Rev 819 | Rev 917 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 819 | Rev 916 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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: 819 $ |
8 | $Revision: 916 $ |
9 | 9 | ||
Line 651... | Line 651... | ||
651 | mov eax, [edx] |
651 | mov eax, [edx] |
652 | test eax, eax |
652 | test eax, eax |
653 | jz .next_table |
653 | jz .next_table |
Line 654... | Line 654... | ||
654 | 654 | ||
655 | push edx |
655 | push edx |
656 | stdcall strncmp, eax, [proc_name], 16 |
656 | stdcall strncmp, eax, [proc_name], 256 |
657 | pop edx |
657 | pop edx |
658 | test eax, eax |
658 | test eax, eax |
Line 659... | Line 659... | ||
659 | jz .ok |
659 | jz .ok |
Line 1009... | Line 1009... | ||
1009 | jnz .copy |
1009 | jnz .copy |
1010 | add edi, [eax+CFS.SizeOfRawData] |
1010 | add edi, [eax+CFS.SizeOfRawData] |
1011 | jmp .next |
1011 | jmp .next |
1012 | .copy: |
1012 | .copy: |
1013 | add esi, edx |
1013 | add esi, edx |
1014 | ; add edi, new_app_base |
- | |
1015 | mov ecx, [eax+CFS.SizeOfRawData] |
1014 | mov ecx, [eax+CFS.SizeOfRawData] |
1016 | cld |
1015 | cld |
1017 | rep movsb |
1016 | rep movsb |
1018 | .next: |
1017 | .next: |
1019 | add edi, 15 ;-new_app_base |
1018 | add edi, 15 ;-new_app_base |
Line 1052... | Line 1051... | ||
1052 | add edx, 20 |
1051 | add edx, 20 |
1053 | stdcall fix_coff_relocs, [coff], edx, [sym] |
1052 | stdcall fix_coff_relocs, [coff], edx, [sym] |
Line 1054... | Line 1053... | ||
1054 | 1053 | ||
1055 | mov ebx, [coff] |
1054 | mov ebx, [coff] |
- | 1055 | stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],szEXPORTS |
|
- | 1056 | test eax, eax |
|
- | 1057 | jnz @F |
|
- | 1058 | ||
- | 1059 | mov ebx, [coff] |
|
1056 | stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],szEXPORTS |
1060 | stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],sz_EXPORTS |
Line 1057... | Line 1061... | ||
1057 | mov [exports], eax |
1061 | mov [exports], eax |
1058 | 1062 | ||
1059 | stdcall kernel_free, [coff] |
1063 | stdcall kernel_free, [coff] |