From bde1721d078742a7979b7f3a52fda496d07ab8b9 Mon Sep 17 00:00:00 2001 From: Nexarian Date: Sun, 12 Feb 2023 23:40:23 -0500 Subject: [PATCH] Can now click OK for autologin --- xrdp/xrdp_login_wnd.c | 2 ++ xrdp/xrdp_wm.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 6e173c8e7b..d843b81f50 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -507,6 +507,8 @@ xrdp_wm_show_edits(struct xrdp_wm *self, struct xrdp_bitmap *combo) if ((g_strncasecmp(name, "password", 255) == 0) || (g_strncasecmp(name, "pampassword", 255) == 0)) { + g_strncpy(b->caption1, self->session->client_info->password, 255); + b->edit_pos = g_mbstowcs(0, b->caption1, 0); b->password_char = '*'; if (username_set) diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 647005129f..50e78325a0 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -2111,7 +2111,6 @@ xrdp_wm_paint_text_list(struct xrdp_painter *painter, struct list *text_list, for (int index = 0; index < text_list->count; ++index) { text = (char *)list_get_item(text_list, index); - //THIS IS WHERE IT'S RENDERED FOUND IT xrdp_painter_draw_text(painter, wnd, 10, (index + 2) * row_height, text); }