diff --git a/programs/dll.inc b/programs/dll.inc index 2c8f170f4f..16a0e6c1c8 100644 --- a/programs/dll.inc +++ b/programs/dll.inc @@ -17,7 +17,13 @@ proc dll.Load, import_table:dword or eax, eax jz .fail stdcall dll.Link, eax, edx + push eax + mov eax, [eax] + cmp dword[eax], 'lib_' + pop eax + jnz @f stdcall dll.Init, [eax + 4] + @@: pop esi add esi, 8 jmp .next_lib