diff --git a/src/misc/modules_plugin.h.in b/src/misc/modules_plugin.h.in index 243d1901640794539a44ad41e5279106071d66a3..1f57fd9ee2443e5c7276cc6b6a470d8fe9a94fcf 100644 --- a/src/misc/modules_plugin.h.in +++ b/src/misc/modules_plugin.h.in @@ -2,7 +2,7 @@ * modules_plugin.h : Plugin management functions used by the core application. ***************************************************************************** * Copyright (C) 2001 VideoLAN - * $Id: modules_plugin.h.in,v 1.12 2003/10/04 12:30:53 massiot Exp $ + * $Id: modules_plugin.h.in,v 1.13 2003/10/04 15:04:49 sam Exp $ * * Authors: Samuel Hocevar <sam@zoy.org> * @@ -50,11 +50,7 @@ static int module_load( const MYCHAR * psz_filename, module_handle_t * handle ) if( !*handle ) { - NSLinkEditErrors errors; - const char *psz_file, *psz_err; - int i_errnum; - NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err ); - return -1; /* err */ + return -1; } /* Destroy our image, we won't need it */ @@ -218,7 +214,11 @@ static void * module_getsymbol( module_handle_t handle, static const char * module_error( char *psz_buffer ) { #if defined(HAVE_DL_DYLD) - return "failed"; + NSLinkEditErrors errors; + const char *psz_file, *psz_err; + int i_errnum; + NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err ); + return psz_err; #elif defined(HAVE_IMAGE_H) return "failed";