summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-08-25 23:58:16 +0000
committerjsorg71 <jsorg71>2005-08-25 23:58:16 +0000
commitdb4a50d56e62cdd2bcadeb201e2784a3842240eb (patch)
tree9b8d851e824fd0e1977efb3b73742b710ee4f981 /xrdp/xrdp_login_wnd.c
parent7d891a1bde2f8287f333fda9acc88310d783da73 (diff)
downloadxrdp-proprietary-db4a50d56e62cdd2bcadeb201e2784a3842240eb.tar.gz
xrdp-proprietary-db4a50d56e62cdd2bcadeb201e2784a3842240eb.zip
set hostname and keylayout first
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index be2f6451..0e96b1cb 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -323,17 +323,17 @@ xrdp_wm_ok_clicked(struct xrdp_bitmap* wnd)
}
if (!wm->pro_layer->term)
{
+ /* always set these */
+ wm->mod->mod_set_param(wm->mod, "hostname",
+ wm->session->client_info->hostname);
+ g_sprintf(text, "%d", wm->session->client_info->keylayout);
+ wm->mod->mod_set_param(wm->mod, "keylayout", text);
for (i = 0; i < names->count; i++)
{
wm->mod->mod_set_param(wm->mod,
(char*)list_get_item(names, i),
(char*)list_get_item(values, i));
}
- /* always set these */
- wm->mod->mod_set_param(wm->mod, "hostname",
- wm->session->client_info->hostname);
- g_sprintf(text, "%d", wm->session->client_info->keylayout);
- wm->mod->mod_set_param(wm->mod, "keylayout", text);
/* connect */
if (wm->mod->mod_connect(wm->mod) != 0)
{