diff options
author | jsorg71 <jsorg71> | 2010-03-15 20:27:41 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2010-03-15 20:27:41 +0000 |
commit | abba73f9bcfa6e3e51f395d67f7270518bb1787d (patch) | |
tree | 4d632513abd95a8a630ce76c469abdabebecfbe8 | |
parent | 530344462e57676bd77635c2e037b5757f53c58a (diff) | |
download | xrdp-proprietary-abba73f9bcfa6e3e51f395d67f7270518bb1787d.tar.gz xrdp-proprietary-abba73f9bcfa6e3e51f395d67f7270518bb1787d.zip |
fix for session persistence
-rw-r--r-- | sesman/session.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sesman/session.c b/sesman/session.c index 18f46dc4..1d487424 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -60,6 +60,20 @@ session_get_bydata(char* name, int width, int height, int bpp, int type) tmp = g_sessions; + /* convert from SCP_SESSION_TYPE namespace to SESMAN_SESSION_TYPE namespace */ + switch (type) + { + case SCP_SESSION_TYPE_XVNC: /* 0 */ + type = SESMAN_SESSION_TYPE_XVNC; /* 2 */ + break; + case SCP_SESSION_TYPE_XRDP: /* 1 */ + type = SESMAN_SESSION_TYPE_XRDP; /* 1 */ + break; + default: + lock_chain_release(); + return 0; + } + while (tmp != 0) { if (g_strncmp(name, tmp->item->name, 255) == 0 && |