From ba206a477e5459972b6163344bd2518aa16c2e51 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 27 Sep 2003 23:05:29 +0000 Subject: [PATCH] module fix git-svn-id: http://ltt.polymtl.ca/svn@267 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/module.c | 8 +++----- ltt/branches/poly/lttv/modules/guiControlFlow/module.c | 3 --- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ltt/branches/poly/lttv/module.c b/ltt/branches/poly/lttv/module.c index 44ce77d0..a77aa736 100644 --- a/ltt/branches/poly/lttv/module.c +++ b/ltt/branches/poly/lttv/module.c @@ -79,8 +79,8 @@ module_load(const char *name, int argc, char **argv) for(i = 0 ; i < modulesPaths->len ; i++) { pathname = g_module_build_path(modulesPaths->pdata[i],name); gm = g_module_open(pathname,G_MODULE_BIND_LAZY); - g_critical("module : %s", pathname); - g_critical("erreur : %s", g_module_error()); + g_critical("loading module : %s", pathname); + g_critical("module error : %s", g_module_error()); g_free(pathname); if(gm != NULL) break; @@ -91,13 +91,11 @@ module_load(const char *name, int argc, char **argv) if(gm == NULL) { pathname = g_module_build_path(NULL,name); gm = g_module_open(pathname,G_MODULE_BIND_LAZY); - g_critical("module : %s", pathname); + g_critical("loading module : %s", pathname); g_free(pathname); } /* Module cannot be found */ - if(gm==NULL) - g_critical("module est null"); if(gm == NULL) return NULL; /* Check if the module was already opened using the hopefully canonical name diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c index fe6a2838..2d2ef062 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c @@ -95,7 +95,4 @@ G_MODULE_EXPORT void destroy() { /* Unregister the menu item insert entry */ //MenuItemUnreg(hGuiControlFlow); - - lttv_module_unload(Main_Win_Module); - } -- 2.34.1