git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AcessNative - Fixing Fixing Fixing
[tpg/acess2.git]
/
AcessNative
/
ld-acess_src
/
binary.c
diff --git
a/AcessNative/ld-acess_src/binary.c
b/AcessNative/ld-acess_src/binary.c
index
6439fb9
..
3ae8d7f
100644
(file)
--- 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;
{
char *path;
void *ret;
- int (*entry)(int,char*[],char**) = NULL;
+ int (*entry)(
void *,
int,char*[],char**) = NULL;
// Find File
path = Binary_LocateLibrary(Name);
// Find File
path = Binary_LocateLibrary(Name);
@@
-108,6
+108,7
@@
void *Binary_LoadLibrary(const char *Name)
}
ret = Binary_Load(path, (uintptr_t*)&entry);
}
ret = Binary_Load(path, (uintptr_t*)&entry);
+ printf("LOADED '%s' to %p (Entry=%p)\n", path, ret, entry);
free(path);
#if DEBUG
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
#if DEBUG
printf("Calling '%s' entry point %p\n", Name, entry);
#endif
- entry(0, argv, NULL);
+ entry(
ret,
0, argv, NULL);
}
return ret;
}
return ret;
UCC
git Repository :: git.ucc.asn.au