diff options
| author | speidy <speidy@gmail.com> | 2014-07-11 09:11:10 +0300 |
|---|---|---|
| committer | speidy <speidy@gmail.com> | 2014-07-11 09:11:10 +0300 |
| commit | aa0f039ceffcaaf868e80ffa044673ea1263c475 (patch) | |
| tree | 13c3d87654dea126821a6263717c7d56091799ec | |
| parent | 7d5f7d113365a13422039425f0ffba71c4b775ef (diff) | |
| download | xrdp-proprietary-aa0f039ceffcaaf868e80ffa044673ea1263c475.tar.gz xrdp-proprietary-aa0f039ceffcaaf868e80ffa044673ea1263c475.zip | |
xrdp: fix for prefilled username issue
| -rw-r--r-- | xrdp/xrdp_login_wnd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index f8896c4e..5b49d44e 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -335,7 +335,9 @@ xrdp_wm_show_edits(struct xrdp_wm *self, struct xrdp_bitmap *combo) } } - if (g_strncmp(name, "username", 255) == 0) + + if (g_strncmp(name, "username", 255) == 0 && + self->session->client_info->username[0]) { g_strncpy(b->caption1, self->session->client_info->username, 255); b->edit_pos = g_mbstowcs(0, b->caption1, 0); |
