summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-09-19 23:25:14 +0000
committerjsorg71 <jsorg71>2005-09-19 23:25:14 +0000
commit273bee0b1eccb1b8b0a474f0075f6a72841be289 (patch)
tree41105dd786ea819b21d41b0d6e0439608e2e5873 /xrdp
parentdb4a50d56e62cdd2bcadeb201e2784a3842240eb (diff)
downloadxrdp-proprietary-273bee0b1eccb1b8b0a474f0075f6a72841be289.tar.gz
xrdp-proprietary-273bee0b1eccb1b8b0a474f0075f6a72841be289.zip
added more message when module dosen't load
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_login_wnd.c12
1 files changed, 12 insertions, 0 deletions
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;