summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/libraries/README8
-rw-r--r--src/library/loader.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/docs/libraries/README b/docs/libraries/README
index f2ecb2a..ef32226 100644
--- a/docs/libraries/README
+++ b/docs/libraries/README
@@ -23,6 +23,12 @@ Some more unsorted links:
the dlerror odity around dlsym
Goal:
-- we want abstractions for varying versions of dlopen/LoadLibrary(Ex) etc.
+- we want abstractions for varying versions of
+ dlopen/LoadLibrary(Ex) etc. modern Unix and Win32 suffice, rest is easy to
+ add (Darwin, HPUX)
- only basic functionality, no module magic versions or other stuff, should
be in a separate library
+- have the error handling right
+- layer on top should support something like a module X in version
+ Major.Minor and a loader which checks what can be checked, should
+ also help us enumerate the symbols in a library (introspection)
diff --git a/src/library/loader.c b/src/library/loader.c
index 8419445..0bc214f 100644
--- a/src/library/loader.c
+++ b/src/library/loader.c
@@ -151,7 +151,7 @@ WOLF_LIBRARY_FUNCPTR wolf_library_get_func( const wolf_library_p l, const char *
#if defined _WIN32
ret = GetProcAddress( l->handle, name );
if( ret == NULL ) {
- wolf_system_error_msg( l->errbuf, INTERNAL_ERRBUF_SIZE );
+ wolf_system_error_msg( l->errbuf, INTERNAL_ERRBUF_SIZE );
*error = WOLF_ERR_INTERNAL;
return ret;
}