forked from KolibriOS/kolibrios
fix load_library
git-svn-id: svn://kolibrios.org@916 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c58b0535f6
commit
45f369f418
@ -653,7 +653,7 @@ proc get_proc_ex stdcall, proc_name:dword, imports:dword
|
|||||||
jz .next_table
|
jz .next_table
|
||||||
|
|
||||||
push edx
|
push edx
|
||||||
stdcall strncmp, eax, [proc_name], 16
|
stdcall strncmp, eax, [proc_name], 256
|
||||||
pop edx
|
pop edx
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz .ok
|
jz .ok
|
||||||
@ -1011,7 +1011,6 @@ proc load_library stdcall, file_name:dword
|
|||||||
jmp .next
|
jmp .next
|
||||||
.copy:
|
.copy:
|
||||||
add esi, edx
|
add esi, edx
|
||||||
; add edi, new_app_base
|
|
||||||
mov ecx, [eax+CFS.SizeOfRawData]
|
mov ecx, [eax+CFS.SizeOfRawData]
|
||||||
cld
|
cld
|
||||||
rep movsb
|
rep movsb
|
||||||
@ -1054,6 +1053,11 @@ proc load_library stdcall, file_name:dword
|
|||||||
|
|
||||||
mov ebx, [coff]
|
mov ebx, [coff]
|
||||||
stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],szEXPORTS
|
stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],szEXPORTS
|
||||||
|
test eax, eax
|
||||||
|
jnz @F
|
||||||
|
|
||||||
|
mov ebx, [coff]
|
||||||
|
stdcall get_coff_sym,[sym],[ebx+CFH.nSymbols],sz_EXPORTS
|
||||||
mov [exports], eax
|
mov [exports], eax
|
||||||
|
|
||||||
stdcall kernel_free, [coff]
|
stdcall kernel_free, [coff]
|
||||||
|
@ -94,6 +94,8 @@ szAtiHW db '/rd/1/drivers/ati2d.drv',0
|
|||||||
|
|
||||||
szSTART db 'START',0
|
szSTART db 'START',0
|
||||||
szEXPORTS db 'EXPORTS',0
|
szEXPORTS db 'EXPORTS',0
|
||||||
|
sz_EXPORTS db '_EXPORTS',0
|
||||||
|
|
||||||
szIMPORTS db 'IMPORTS',0
|
szIMPORTS db 'IMPORTS',0
|
||||||
|
|
||||||
read_firstapp db '/sys/'
|
read_firstapp db '/sys/'
|
||||||
|
Loading…
Reference in New Issue
Block a user