From 273bee0b1eccb1b8b0a474f0075f6a72841be289 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 19 Sep 2005 23:25:14 +0000 Subject: [PATCH] added more message when module dosen't load --- xrdp/xrdp_login_wnd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 0e96b1cb..723cfd2f 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -126,18 +126,30 @@ xrdp_wm_setup_mod(struct xrdp_wm* self, { func = g_get_proc_address(self->mod_handle, "_mod_init"); } + if (func == 0) + { + g_printf("error finding proc mod_init in %s\n\r", mod_data->lib); + } self->mod_init = (struct xrdp_mod* (*)(void))func; func = g_get_proc_address(self->mod_handle, "mod_exit"); if (func == 0) { func = g_get_proc_address(self->mod_handle, "_mod_exit"); } + if (func == 0) + { + g_printf("error finding proc mod_exit in %s\n\r", mod_data->lib); + } self->mod_exit = (int (*)(struct xrdp_mod*))func; if (self->mod_init != 0 && self->mod_exit != 0) { self->mod = self->mod_init(); } } + else + { + g_printf("error loading %s\n\r", mod_data->lib); + } if (self->mod != 0) { self->mod->wm = (long)self;