X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fld-acess_src%2Fbinary.c;h=3ae8d7f12be57dd56214592031157dd1db8d7c41;hb=d48818efad07523eba505813b60a82d13b35499a;hp=6439fb962594abcec450977196fae7f4da55dc97;hpb=b391a1b79e12096b561e68a48eb096dcb77fca47;p=tpg%2Facess2.git diff --git a/AcessNative/ld-acess_src/binary.c b/AcessNative/ld-acess_src/binary.c index 6439fb96..3ae8d7f1 100644 --- a/AcessNative/ld-acess_src/binary.c +++ b/AcessNative/ld-acess_src/binary.c @@ -96,7 +96,7 @@ void *Binary_LoadLibrary(const char *Name) { char *path; void *ret; - int (*entry)(int,char*[],char**) = NULL; + int (*entry)(void *,int,char*[],char**) = NULL; // Find File path = Binary_LocateLibrary(Name); @@ -108,6 +108,7 @@ void *Binary_LoadLibrary(const char *Name) } ret = Binary_Load(path, (uintptr_t*)&entry); + printf("LOADED '%s' to %p (Entry=%p)\n", path, ret, entry); free(path); #if DEBUG @@ -118,7 +119,7 @@ void *Binary_LoadLibrary(const char *Name) #if DEBUG printf("Calling '%s' entry point %p\n", Name, entry); #endif - entry(0, argv, NULL); + entry(ret, 0, argv, NULL); } return ret;