diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-12-01 23:10:09 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-12-01 23:10:09 -0800 |
commit | f49e2058dfd857b441daa4b18bcde6e341d8b9da (patch) | |
tree | ab2940244c2894bb7f95e3b65ada36b02685b4e5 /xrdp/xrdp_mm.c | |
parent | 9f710ce94aafe716453a23495470fe51dde9679c (diff) | |
download | xrdp-proprietary-f49e2058dfd857b441daa4b18bcde6e341d8b9da.tar.gz xrdp-proprietary-f49e2058dfd857b441daa4b18bcde6e341d8b9da.zip |
xrdp: change when using xrdp.ini hidelogwindow
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r-- | xrdp/xrdp_mm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index 56d2623f..cfee5ee8 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -578,6 +578,10 @@ xrdp_mm_setup_mod2(struct xrdp_mm *self) else { xrdp_wm_show_log(self->wm); + if (self->wm->hide_log_window) + { + rv = 1; + } } } @@ -1231,6 +1235,10 @@ xrdp_mm_process_login_response(struct xrdp_mm *self, struct stream *s) log_message(LOG_LEVEL_INFO,"xrdp_mm_process_login_response: " "login failed"); xrdp_wm_show_log(self->wm); + if (self->wm->hide_log_window) + { + rv = 1; + } } cleanup_sesman_connection(self); @@ -2155,6 +2163,11 @@ xrdp_mm_check_wait_objs(struct xrdp_mm *self) if (trans_check_wait_objs(self->sesman_trans) != 0) { self->delete_sesman_trans = 1; + if (self->wm->hide_log_window) + { + /* if hide_log_window, this is fatal */ + rv = 1; + } } } |