From aee4b034435f3f35ab381f176a20ee5e2d8a75e4 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Wed, 14 Nov 2012 08:51:34 +0000 Subject: [PATCH] fix for dll.inc (r3014) git-svn-id: svn://kolibrios.org@3038 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/dll.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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