added more message when module dosen't load

This commit is contained in:
jsorg71 2005-09-19 23:25:14 +00:00
parent db4a50d56e
commit 273bee0b1e

View File

@ -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;