fix for dll.inc (r3014)

git-svn-id: svn://kolibrios.org@3038 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2012-11-14 08:51:34 +00:00
parent c61318c4d9
commit aee4b03443

View File

@ -17,7 +17,13 @@ proc dll.Load, import_table:dword
or eax, eax or eax, eax
jz .fail jz .fail
stdcall dll.Link, eax, edx stdcall dll.Link, eax, edx
push eax
mov eax, [eax]
cmp dword[eax], 'lib_'
pop eax
jnz @f
stdcall dll.Init, [eax + 4] stdcall dll.Init, [eax + 4]
@@:
pop esi pop esi
add esi, 8 add esi, 8
jmp .next_lib jmp .next_lib