diff --git a/src/misc/modules_plugin.h.in b/src/misc/modules_plugin.h.in index 1f57fd9ee2443e5c7276cc6b6a470d8fe9a94fcf..a56d3dd606d75ffb0caddb3b7626db91971eb660 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.13 2003/10/04 15:04:49 sam Exp $ + * $Id: modules_plugin.h.in,v 1.14 2003/10/04 15:49:13 sam Exp $ * * Authors: Samuel Hocevar <sam@zoy.org> * @@ -56,6 +56,8 @@ static int module_load( const MYCHAR * psz_filename, module_handle_t * handle ) /* Destroy our image, we won't need it */ NSDestroyObjectFileImage( image ); + return 0; + #elif defined(HAVE_IMAGE_H) *handle = load_add_on( psz_filename ); return( *handle < 0 ); @@ -218,7 +220,12 @@ static const char * module_error( char *psz_buffer ) const char *psz_file, *psz_err; int i_errnum; NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err ); - return psz_err; + if( *psz_err ) + { + return psz_err; + } + + return "failed"; #elif defined(HAVE_IMAGE_H) return "failed";