Commit c992c9ca authored by Sam Hocevar's avatar Sam Hocevar

* src/misc/modules_plugin.h.in: Added a missing return value that caused

    module loading to fail.
parent 9ca675f3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules_plugin.h : Plugin management functions used by the core application. * modules_plugin.h : Plugin management functions used by the core application.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -56,6 +56,8 @@ static int module_load( const MYCHAR * psz_filename, module_handle_t * handle ) ...@@ -56,6 +56,8 @@ static int module_load( const MYCHAR * psz_filename, module_handle_t * handle )
/* Destroy our image, we won't need it */ /* Destroy our image, we won't need it */
NSDestroyObjectFileImage( image ); NSDestroyObjectFileImage( image );
return 0;
#elif defined(HAVE_IMAGE_H) #elif defined(HAVE_IMAGE_H)
*handle = load_add_on( psz_filename ); *handle = load_add_on( psz_filename );
return( *handle < 0 ); return( *handle < 0 );
...@@ -218,7 +220,12 @@ static const char * module_error( char *psz_buffer ) ...@@ -218,7 +220,12 @@ static const char * module_error( char *psz_buffer )
const char *psz_file, *psz_err; const char *psz_file, *psz_err;
int i_errnum; int i_errnum;
NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err ); NSLinkEditError( &errors, &i_errnum, &psz_file, &psz_err );
return psz_err; if( *psz_err )
{
return psz_err;
}
return "failed";
#elif defined(HAVE_IMAGE_H) #elif defined(HAVE_IMAGE_H)
return "failed"; return "failed";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment