Commit 455104ab authored by Loïc Minier's avatar Loïc Minier

* ./include/modules_inner.h: fixed a crash when reopening a hidden

    module (by sam)
parent 0b04c739
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules_inner.h : Macros used from within a module. * modules_inner.h : Macros used from within a module.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules_inner.h,v 1.19 2002/05/15 00:02:27 sam Exp $ * $Id: modules_inner.h,v 1.20 2002/05/22 11:23:56 lool Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
{ \ { \
int i_shortcut = 1; \ int i_shortcut = 1; \
struct module_config_s* p_item; \ struct module_config_s* p_item; \
STORE_SYMBOLS; \
p_module->psz_name = MODULE_STRING; \ p_module->psz_name = MODULE_STRING; \
p_module->psz_longname = MODULE_STRING; \ p_module->psz_longname = MODULE_STRING; \
p_module->psz_program = NULL; \ p_module->psz_program = NULL; \
...@@ -144,6 +145,7 @@ ...@@ -144,6 +145,7 @@
#define MODULE_ACTIVATE_START \ #define MODULE_ACTIVATE_START \
int __VLC_SYMBOL( ActivateModule ) ( module_t *p_module ) \ int __VLC_SYMBOL( ActivateModule ) ( module_t *p_module ) \
{ \ { \
STORE_SYMBOLS; \
p_module->p_functions = \ p_module->p_functions = \
( module_functions_t * )malloc( sizeof( module_functions_t ) ); \ ( module_functions_t * )malloc( sizeof( module_functions_t ) ); \
if( p_module->p_functions == NULL ) \ if( p_module->p_functions == NULL ) \
......
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