Skip to content

Commit bde1721

Browse files
committed
Can now click OK for autologin
1 parent 232dec5 commit bde1721

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xrdp/xrdp_login_wnd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ xrdp_wm_show_edits(struct xrdp_wm *self, struct xrdp_bitmap *combo)
507507
if ((g_strncasecmp(name, "password", 255) == 0) ||
508508
(g_strncasecmp(name, "pampassword", 255) == 0))
509509
{
510+
g_strncpy(b->caption1, self->session->client_info->password, 255);
511+
b->edit_pos = g_mbstowcs(0, b->caption1, 0);
510512
b->password_char = '*';
511513

512514
if (username_set)

xrdp/xrdp_wm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,6 @@ xrdp_wm_paint_text_list(struct xrdp_painter *painter, struct list *text_list,
21112111
for (int index = 0; index < text_list->count; ++index)
21122112
{
21132113
text = (char *)list_get_item(text_list, index);
2114-
//THIS IS WHERE IT'S RENDERED FOUND IT
21152114
xrdp_painter_draw_text(painter, wnd, 10,
21162115
(index + 2) * row_height, text);
21172116
}

0 commit comments

Comments
 (0)